protected NewsSentGridModel MapToGridModel(NewsSent item) { return(new NewsSentGridModel() { ID = item.ID, NewsTitle = item.News.Title, UserGroupName = item.UserGroupId.ToString(), UserGroupId = item.UserGroupId, SentDate = item.SentDate }); }
protected NewsSentModel MapToModel(NewsSent item) { return(new NewsSentModel() { ID = item.ID, NewsID = item.NewsID, UserGroupId = item.UserGroupId, SentDate = item.SentDate, News = MapToModel(item.News), UserGroup = new UserGroupModel() { ID = item.UserGroupId } }); }