public ActionResult Index(int page = 1, string name = "") { page = page < 1 ? 1 : page; return(View(string.IsNullOrEmpty(name) ? _provider.GetEventsList(page - 1) : _provider.FindEvents(page - 1, name: name))); }
public ActionResult Index(int page = 1) { return(View(_provider.GetEventsList(page - 1))); }
// GET: EventsList public ActionResult Index(int page = 1) { return(View("~/Views/Events/EventsList/Index.cshtml", _provider.GetEventsList(page - 1))); }
public ActionResult Index(int page = 1) { //RunCustomPipeline(); return(View(_provider.GetEventsList(page - 1))); }