//public ActionResult GetEventByYakkrid(string YakkrId) //{ // StaffEventCreation eventdata = new StaffEventCreation(); // EduData = new EducationManagerData(); // try // { // eventdata = EduData.GetEventByYakkrId(YakkrId); // } // catch (Exception ex) // { // clsError.WriteException(ex); // } // return Json(eventdata, JsonRequestBehavior.AllowGet); //} public ActionResult GetEventListByEventType(string EventType) { EduData = new EducationManagerData(); StaffEventCreation evt = new StaffEventCreation(); try { evt.events = EventType == "1"?EduData.GetStaffEventList((int)FingerprintsModel.Enums.StaffEventListType.OpenEvents): EduData.GetStaffEventList((int)FingerprintsModel.Enums.StaffEventListType.CompletedEvents); } catch (Exception ex) { clsError.WriteException(ex); } return(Json(evt.events, JsonRequestBehavior.AllowGet)); }
public ActionResult CompletedEvents() { EduData = new EducationManagerData(); StaffEventCreation evt = new StaffEventCreation(); ViewBag.EventType = "completed"; try { evt.events = EduData.GetStaffEventList((int)FingerprintsModel.Enums.StaffEventListType.CompletedEvents); } catch (Exception ex) { clsError.WriteException(ex); } return(View("EventsList", evt)); }
public ActionResult EventsList() { ViewBag.EventType = "future"; EduData = new EducationManagerData(); StaffEventCreation evt = new StaffEventCreation(); try { evt.events = EduData.GetStaffEventList((int)FingerprintsModel.Enums.StaffEventListType.UpcomingEvents); } catch (Exception ex) { clsError.WriteException(ex); } return(View(evt)); }
public ActionResult StaffEventReports() { EduData = new EducationManagerData(); StaffEventCreation evt = new StaffEventCreation(); ViewBag.EventType = "completed"; try { evt.events = EduData.GetStaffEventList(5); } catch (Exception ex) { clsError.WriteException(ex); } return(View(evt)); }