public static UpdateModel CreateFromBlogPost(Domain.BlogPost blogPost) { return(new UpdateModel() { Title = blogPost.Title, Message = blogPost.Message, }); }
public Domain.BlogPost UpdateBlogPost(Domain.BlogPost blogPost) { blogPost.Message = Message; blogPost.Title = Title; return(blogPost); }