Exemplo n.º 1
0
 public void AddUser(User user)
 {
     if (!DoesExist(user.UserName))
     {
         user.Password = CommonMethods.ConvertToEncrypt(user.Password);
         _dbContext.Add(user);
         Save();
     }
 }
Exemplo n.º 2
0
 public void AddRecipeIngredient(RecipeIngredient recipeIngredient)
 {
     _dbContext.Add(recipeIngredient);
     Save();
 }
Exemplo n.º 3
0
 public void AddIngredient(Ingredient ingredient)
 {
     _dbContext.Add(ingredient);
     Save();
 }
Exemplo n.º 4
0
 public void AddRecipeInstruction(RecipeInstruction RecipeInstruction)
 {
     _dbContext.Add(RecipeInstruction);
     Save();
 }
Exemplo n.º 5
0
 public void AddBasket(Basket Basket)
 {
     _dbContext.Add(Basket);
     Save();
 }
Exemplo n.º 6
0
 public void AddRecipe(Recipe recipe)
 {
     recipe.CreatedDate = DateTime.Now;
     _dbContext.Add(recipe);
     Save();
 }
Exemplo n.º 7
0
 public void AddMeasure(Measure measure)
 {
     _dbContext.Add(measure);
     Save();
 }