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