You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
809 B

  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Entity.ShowEasyDtos
  8. {
  9. public class CategoryDTO
  10. {
  11. /// <summary>
  12. ///
  13. /// </summary>
  14. public string CategoryID { get; set; }
  15. /// <summary>
  16. ///
  17. /// </summary>
  18. public string CategoryName { get; set; }
  19. /// <summary>
  20. ///
  21. /// </summary>
  22. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  23. public List<CategoryDTO> SubCategoryList = new List<CategoryDTO>();
  24. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  25. public Dictionary<string, CategoryDTO> SubCategoryDic = new Dictionary<string, CategoryDTO>();
  26. }
  27. }