예제 #1
0
 public static dataBlogger.Post ToModelData(this dtoBlogger.Post source)
 {
     return(new dataBlogger.Post()
     {
         BlogId = source.BlogId,
         Content = source.Content,
         PostId = source.PostId,
         Title = source.Title,
     });
 }
예제 #2
0
 public static objBlogger.Post ToModelObj(this dtoBlogger.Post source)
 {
     return(new objBlogger.Post()
     {
         BlogId = source.BlogId,
         Content = source.Content,
         PostId = source.PostId,
         Title = source.Title,
     });
 }