using System;
using System.Collections.Generic;
using System.Text;

namespace Bailun.DC.Models.Common
{
    public class CategoryDto
    {
        public int C_ID { get; set; }

        public int C_PARENTID { get; set; }

        private string _c_name;
        public string C_NAME
        {
            get
            {
                if (string.IsNullOrWhiteSpace(C_CNAME))
                    return _c_name;
                else
                    return C_CNAME;

            }
            set { _c_name = value; }
        }
        public string C_CNAME { get; set; }

        public string C_PY { get; set; }

        public string C_KEY { get; set; }
        
        public string C_SORT { get; set; }
        
        public int C_LEVEL { get; set; }

    }

    public class CategoryResult
    {
        public List<CategoryDto> result { get; set; }

        public int statusCode { get; set; }

        public string message { get; set; }
    }
}
