コード例 #1
0
        public async Task <ActionResult <BusStationReadDto> > GetBusStationByIdAsync(int id)
        {
            var busStation = await _busStationService.GetBusStationByIdAsync(id);

            if (busStation != null)
            {
                return(Ok(_mapper.Map <BusStationReadDto>(busStation)));
            }

            return(NotFound());
        }