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)); }
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)); }