示例#1
0
        public ActionResult GetSheduleInfo(MyEventsIdentity identity, int eventDefinitionId)
        {
            var eventDefinition = _eventDefinitionRepository.GetById(eventDefinitionId);

            _authorizationService.ValidateEventAuthorization(identity, eventDefinition);

            var mapper = new EventDefinitionToScheduleViewModelMapper();
            var viewModel = mapper.Map(eventDefinition);

            return Json(viewModel, JsonRequestBehavior.AllowGet);
        }
示例#2
0
        public ActionResult GetSheduleInfo(int eventDefinitionId)
        {
            var eventDefinition = _eventsRepository.GetById(eventDefinitionId);

            var mapper = new EventDefinitionToScheduleViewModelMapper();
            var viewModel = mapper.Map(eventDefinition);

            return Json(viewModel, JsonRequestBehavior.AllowGet);
        }