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