예제 #1
0
 public static Recipe FromModelToData(NewRecipeDataModel data, int categoryId)
 {
     return new Recipe()
     {
         Name = data.Name,
         Description = data.Description,
         CategoryId = categoryId,
         Products = string.Join(";", data.Products)
     };
 }
예제 #2
0
 public static Recipe FromModelToData(NewRecipeDataModel data, int categoryId)
 {
     return(new Recipe()
     {
         Name = data.Name,
         Description = data.Description,
         CategoryId = categoryId,
         Products = string.Join(";", data.Products)
     });
 }