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