public bool Create(Recipe recipe) { recipe.Created = DateTime.UtcNow; context.Recipes.Add(recipe); return(context.SaveChanges() > 0); }
public bool Create(Plan plan) { plan.Created = DateTime.UtcNow; context.Plans.Add(plan); return(context.SaveChanges() > 0); }
public bool Create(RecipePlans recipePlans) { _context.RecipePlans.Add(recipePlans); return(_context.SaveChanges() > 0); }
public bool Create(DayName dayName) { context.DayNames.Add(dayName); return(context.SaveChanges() > 0); }
public bool Create(Book book) { _context.Books.Add(book); return(_context.SaveChanges() > 0); }
public bool Update(User user) { context.Users.Update(user); return(context.SaveChanges() > 0); }
public bool Create(Recipe recipe) { _context.Recipes.Add(recipe); return(_context.SaveChanges() > 0); }
public bool Create(Plan planModel) { _context.Plans.Add(planModel); return(_context.SaveChanges() > 0); }