예제 #1
0
        public void UpdateLunchEvent(LunchEvent lunchEvent)
        {
            var entry = db.Entry(lunchEvent);

            entry.State = EntityState.Modified;
            db.SaveChanges();
        }
예제 #2
0
 public void CreateLunchEvent(LunchEvent lunchEvent)
 {
     lunchEventData.Create(lunchEvent);
 }
예제 #3
0
 public void UpdateLunchEvent(LunchEvent lunchEvent)
 {
     lunchEventData.Update(lunchEvent);
 }
예제 #4
0
 public void CreateLunchEvent(LunchEvent lunchEvent)
 {
     db.LunchEvents.Add(lunchEvent);
     db.SaveChanges();
 }
예제 #5
0
 public ActionResult Delete(LunchEvent lunchEvent)
 {
     db.DeleteLunchEvent(lunchEvent.Id);
     return(RedirectToAction("Index"));
 }