public ArticleModel(ArticleEntity item) { this.ArticleId = item.NewsID; this.CateId = item.CategoryID; this.Title = item.Title; this.SubTitle = item.SubTitle; this.Description = item.Description; this.Avatar = item.Avatar; this.CreatedDate = item.CreatedDate.ToString("dd/MM/yyyy"); this.PublishedDate = item.PublishedDate.ToString("dd/MM/yyyy"); this.URL = BuildLink.BuildURLForArticle(item.Title, item.NewsID); }