Example #1
0
        public async Task <ActionResult> GetSeatByIdAsync(int id)
        {
            BlAirplaneSeat seatBl = await _airplaneService.GetSeatByIdAsync(id);

            if (seatBl == null)
            {
                return(NotFound());
            }

            AirplaneSeat seat = _mapper.Map <AirplaneSeat>(seatBl);

            return(Ok(seat));
        }