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); }
public ActionResult GetSheduleInfo(int eventDefinitionId) { var eventDefinition = _eventsRepository.GetById(eventDefinitionId); var mapper = new EventDefinitionToScheduleViewModelMapper(); var viewModel = mapper.Map(eventDefinition); return Json(viewModel, JsonRequestBehavior.AllowGet); }