/// <summary> /// Get Schedule Information /// </summary> /// <param name="eventDefinitionId"></param> /// <returns></returns> public Schedule GetScheduleInformation(int eventDefinitionId) { var eventDefinition = _eventDefinitionRepository.GetById(eventDefinitionId); var mapper = new EventDefinitionToScheduleViewModelMapper(); var scheduleInformation = mapper.Map(this.GetRegisteredUserId(), eventDefinition); return(scheduleInformation); }
public ActionResult GetSheduleInfo(int eventDefinitionId) { var eventDefinition = _eventsRepository.GetById(eventDefinitionId); var mapper = new EventDefinitionToScheduleViewModelMapper(); var viewModel = mapper.Map(eventDefinition); return(Json(viewModel, JsonRequestBehavior.AllowGet)); }
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)); }