public Recipe AddRecipe(Recipe recipe) { try { return _ctx.Recipes.Add(recipe); } catch { // Log errror here } return null; }
public RecipeFormDataMultipartStreamProvider(MatsMatDataContext dbContext, Recipe recipe) { db = dbContext; _recipe = recipe; }
public DbEntityEntry<Recipe> Entry(Recipe recipe) { return _ctx.Entry(recipe); }