Пример #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
     };
 }