public ActionResult Delete(int id) { ScheduleManager sessMgr = new ScheduleManager(); Session sessionDTO = sessMgr.GetSession(id); if (sessionDTO == null) { return(HttpNotFound("Invalid Id")); } SessionManager_SessionViewModel sessionVM = new SessionManager_SessionViewModel(sessionDTO); //Returns a Confirm Delete Screen return(View(sessionVM)); }
public ActionResult Details(int id) { ScheduleManager sessMgr = new ScheduleManager(); Session sessionDTO = sessMgr.GetSession(id); if (sessionDTO == null) { return(HttpNotFound("Invalid Id")); } SessionManager_SessionViewModel sessVM = new SessionManager_SessionViewModel(sessionDTO); return(View(sessVM)); }