namespace ladaexpress.vn.Infrastructures.DTO.Models.Product.Index.Childs
{
    public class ProductItem
    {
        public int Id { get; set; }
        public string Thumbnail { get; set; }
        public string Name { get; set; }
        public string ShortDescription { get; set; }

        public DateTimeOffset? ModifiedDate { get; set; }
        public string ModifiedDateStr => ModifiedDate.HasValue ? ModifiedDate.Value.ToString("dd/MM/yyy") : "";

        public DateTimeOffset? PublishDate { get; set; }
        public string PublishDateStr => PublishDate.HasValue ? PublishDate.Value.ToString("dd/MM/yyy") : "";

        public string Author { get; set; }

        public string Slug { get; set; }

        /// <summary>
        /// Thời gian đọc tính bằng phút
        /// </summary>
        public int ReadingTime { get; set; }


        #region Danh mục
        public int CatId { get; set; }
        public string CatName { get; set; }
        public int CatDisplayOrder { get; set; }
        public string CatSlug { get; set; }
        #endregion
    }
}
