public async Task <ActionResult <AirlineViewModel> > Update(AirlineViewModel airline) { var response = await _airlineService.Update(airline.ToModel()); if (response != BusinessLogic.Enums.StatusCode.Updated) { _logger.LogError($"Airline {airline.Name} not Updated."); } return(response == BusinessLogic.Enums.StatusCode.Created ? (ActionResult <AirlineViewModel>)Ok() : Conflict()); }