public void UpdateLunchEvent(LunchEvent lunchEvent) { var entry = db.Entry(lunchEvent); entry.State = EntityState.Modified; db.SaveChanges(); }
public void CreateLunchEvent(LunchEvent lunchEvent) { lunchEventData.Create(lunchEvent); }
public void UpdateLunchEvent(LunchEvent lunchEvent) { lunchEventData.Update(lunchEvent); }
public void CreateLunchEvent(LunchEvent lunchEvent) { db.LunchEvents.Add(lunchEvent); db.SaveChanges(); }
public ActionResult Delete(LunchEvent lunchEvent) { db.DeleteLunchEvent(lunchEvent.Id); return(RedirectToAction("Index")); }