Example #1
0
        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;
 }
Example #3
0
 public DbEntityEntry<Recipe> Entry(Recipe recipe)
 {
     return _ctx.Entry(recipe);
 }