public ActionResult Create(Meeting meeting) { try { // TODO: Add insert logic here RavenSession.Store(meeting); return RedirectToAction("Index"); } catch { return View(); } }
public ActionResult Delete(int id, Meeting meeting) { try { // TODO: Add delete logic here Meeting meetingToDelete = RavenSession.Load<Meeting>(id); RavenSession.Delete(meetingToDelete); return RedirectToAction("Index"); } catch { return View(); } }
public ActionResult Edit(int id, Meeting meeting) { try { // TODO: Add update logic here Meeting currentMeeting = RavenSession.Load<Meeting>(id); currentMeeting.Description = meeting.Description; currentMeeting.Name = meeting.Name; currentMeeting.MeetingDate = meeting.MeetingDate; RavenSession.Store(currentMeeting); return RedirectToAction("Index"); } catch { return View(); } }