예제 #1
0
 public static Comment FromModelToData(CommentDataModel model, string userId, Guid recipeId)
 {
     return(new Comment()
     {
         RecipeId = recipeId,
         UserId = userId,
         Text = model.Text
     });
 }
예제 #2
0
 public static Comment FromModelToData(CommentDataModel model, string userId, Guid recipeId)
 {
     return new Comment()
     {
         RecipeId = recipeId,
         UserId = userId,
         Text = model.Text
     };
 }