public ActionResult EventList() { //Get all events for this customer user CameleoCustomerEventListViewModel customerEventListViewModel = _customerEventService.GetCustomerEventListViewModel(_workContext.CurrentCustomer.Id); //Return view return(View("~/Plugins/Cameleo.CameleoEvents/Views/CameleoEvents/CustomerEvent/CameleoEvents.cshtml", customerEventListViewModel)); }
public ActionResult CustomerEventListJson(int eventId, string groupName, DataSourceRequest command) { CameleoCustomerEventListViewModel customerEventListViewModel = _customerEventService.GetCustomerEventListViewModel(eventId, groupName); var model = new DataSourceResult { Data = customerEventListViewModel.CameleoCustomerEventList, Total = customerEventListViewModel.CameleoCustomerEventList.Count }; return(Json(model)); }