Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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));
        }