public ActionResult CreateEvent() { using (var context = new StripeEntities()) { ViewBag.SchoolList = SchoolClass.getSchoolList(context); GetGameList getGameList = new GetGameList(context); ViewBag.GameList = getGameList.getGameTypeList(); } return(View()); }
public ActionResult EditEvent(int eventId) { using (var context = new StripeEntities()) { Event getEventDetails = new Event(context); var eventDetails = getEventDetails.GetEventByEventId(eventId) .SingleOrDefault(); ViewBag.SchoolList = SchoolClass.getSchoolList(context); GetGameList getGameList = new GetGameList(context); ViewBag.GameList = getGameList.getGameTypeList(); return(View(eventDetails)); } }