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