public virtual BOPosts MapModelToBO( int id, ApiPostsRequestModel model ) { BOPosts boPosts = new BOPosts(); boPosts.SetProperties( id, model.AcceptedAnswerId, model.AnswerCount, model.Body, model.ClosedDate, model.CommentCount, model.CommunityOwnedDate, model.CreationDate, model.FavoriteCount, model.LastActivityDate, model.LastEditDate, model.LastEditorDisplayName, model.LastEditorUserId, model.OwnerUserId, model.ParentId, model.PostTypeId, model.Score, model.Tags, model.Title, model.ViewCount); return(boPosts); }
public virtual BOPosts MapEFToBO( Posts ef) { var bo = new BOPosts(); bo.SetProperties( ef.Id, ef.AcceptedAnswerId, ef.AnswerCount, ef.Body, ef.ClosedDate, ef.CommentCount, ef.CommunityOwnedDate, ef.CreationDate, ef.FavoriteCount, ef.LastActivityDate, ef.LastEditDate, ef.LastEditorDisplayName, ef.LastEditorUserId, ef.OwnerUserId, ef.ParentId, ef.PostTypeId, ef.Score, ef.Tags, ef.Title, ef.ViewCount); return(bo); }