Exemple #1
0
        public override void GetExpositionCustomerExcursions(IExcursionsScheduleService excursionsScheduleService)
        {
            Choice("Please enter grafik or exposition Id :");
            var customeExcursion = excursionsScheduleService.GetCustomExcursions(choice);

            if (customeExcursion == null)
            {
                Console.WriteLine("Not found");
                return;
            }
            foreach (var item in customeExcursion)
            {
                Console.WriteLine(item.ToString());
            }
        }
        public IHttpActionResult GetCustomExcursions(int grafikId)
        {
            var excursions = mapper.Map <IEnumerable <CustomExcursionModel> >(excursionsScheduleService.GetCustomExcursions(grafikId));

            return(Ok(excursions));
        }