public async Task <IActionResult> Delete(int id) { var result = await _aircraftService.DeleteAsync(id); if (!result.Success) { return(BadRequest(result.Message)); } var aircraftDTO = _mapper.Map <T, TResponse>(result.Aircraft); return(Ok(aircraftDTO)); }