[HttpPut] // PUT localhost/Airline public async Task <IActionResult> UpdateAirline(UpdateAirlineDto updatedAirline) { if (!ModelState.IsValid) { return(BadRequest()); } ServiceResponse <UpdateAirlineDto> response = await _airlineService.UpdateAirline(updatedAirline); if (response.Data == null) { return(NotFound(response)); } return(Ok(response)); }