Esempio n. 1
0
        public async Task <IEnumerable> Get()
        {
            var trainsDTO = await _trainService.GetAvailableAsync();

            var trainsVM = Mapper.Map <IEnumerable <TrainDTO>, IEnumerable <TrainVM> >(trainsDTO);

            return(trainsVM);
        }