public async Task <ActionResult <TResponse> > Post([FromBody] TResponse dto) { var aircraft = _mapper.Map <TResponse, T>(dto); var result = await _aircraftService.CreateAsync(aircraft); if (!result.Success) { return(BadRequest(result.Message)); } var aircraftDTO = _mapper.Map <T, TResponse>(result.Aircraft); return(Ok(aircraftDTO)); }