public void SaveCake(Cake cake) { _appDbContext.Cakes.Add(cake); _appDbContext.SaveChanges(); }
public void AddCake(Cake cake) { _appDbContext.Add(cake); return; }
public void SaveCake(Cake cake) { _appDbContext.Cakes.Add(cake); _appDbContext.SaveChanges(); }
public void AddCake(Cake cake) { _appDbContext.Add(cake); return; }