Ejemplo n.º 1
0
        public ActionResult AddCustomerEventPopup(int eventId, string groupName)
        {
            var model = new AddCustomerEventViewModel();

            //Event
            model.CameleoEvent = _eventService.GetEventViewModel(eventId);

            //Get user events for this group
            model.CameleoEventUserList = _eventUserService.GetEventUserListViewModel(eventId, groupName);

            //Get customer events for this group
            model.CameleoCustomerEventList = _customerEventService.GetCustomerEventListViewModel(eventId, groupName);

            //Group name
            model.GroupName = groupName;

            return(View("~/Plugins/Cameleo.CameleoEvents/Views/Admin/CustomerEvent/AddCustomerEventPopup.cshtml", model));
        }
Ejemplo n.º 2
0
        public ActionResult EventUserList(DataSourceRequest command, int eventId)
        {
            CameleoEventUserListViewModel eventUserListViewModel = _eventUserService.GetEventUserListViewModel(eventId);

            var gridModel = new DataSourceResult
            {
                Data  = eventUserListViewModel.CameleoEventUserList,
                Total = eventUserListViewModel.CameleoEventUserList.Count
            };

            return(Json(gridModel));
        }