public IActionResult MyEvents() { EventsListVM myEventsList = new EventsListVM(); myEventsList.eventList = _eventRepozytory.allUserEvents(User.Identity.Name).ToList(); return(View(myEventsList)); }
public IActionResult ShowEvents(EventsListVM model) { model.eventList = _eventRepozytory.allEvent().ToList(); return(View(model)); }
public IActionResult SearchEvents(EventsListVM model) { model.eventList = _eventRepozytory.searchEvents(model.searchName, model.sortByDS == "true", model.searcDateStart, model.sortByDE == "true", model.searcDateEnd, model.typeSort == "Up").ToList(); return(View("ShowEvents", model)); }