public IHttpActionResult GetScheduledExcursionInfo(int grafikId) { var scheduledExcursion = mapper.Map <ExcursionModel>( excursionsScheduleService.GetScheduledExcursionsInfo(grafikId)); return(Ok(scheduledExcursion)); }
public override void GetExpositionScheduleExcursions(IExcursionsScheduleService excursionsScheduleService) { Choice("Please enter grafik or exposition Id :"); var scheduleExcursion = excursionsScheduleService.GetScheduledExcursionsInfo(choice); if (scheduleExcursion == null) { Console.WriteLine("Not found"); return; } Console.WriteLine(scheduleExcursion.ToString()); }