public ActionResult Index(int eventId = 0) { //eventManagement = new EventManagement(); List <Event> events = eventBAL.GetEventList(); //List<PitStop> pitStops = pitStopBAL.getPitStopOfEvent(eventId); //eventManagement.PitStops = pitStops; //eventManagement.Events = events; return(View(events.ToList())); }
/*<summary> * this method returns the Event List sorted with Latest Date to the partialView * </summary> * <returns>PartialView of the List of Events</returns>*/ public PartialViewResult EventsList() { List <Event> events = eventBAL.GetEventList(); return(PartialView("_EventsList", events.ToList())); }