using Lada.Framework.Data.Enums;
using Lada.Framework.Infrastructures.Helpers;

namespace Ladaer.BackEnd.Infrastructures.DTO.Items.Cms
{
    public class CategoryItem
    {
        public int Id { get; set; }

        public string Name { get; set; }
        public string ParentName { get; set; }

        public string Description { get; set; }

        public int DisplayOrder { get; set; }

        public string Slug { get; set; }

        /// <summary>
        /// Danh mục cha
        /// </summary>
        public int ParentId { get; set; }

        /// <summary>
        /// Là danh mục nổi bật hay không
        /// </summary>
        public bool IsFeatured { get; set; }

        /// <summary>
        /// Loại danh mục
        /// </summary>
        public ContentType ContentType { get; set; }

        public string ContentTypeStr => ContentType.GetDescription();

    }
}
