public async Task <ActionResult <AirlineViewModel> > Get(Guid id) { var user = (await _airlineService.GetById(id)).ToViewModel(); if (user == null) { _logger.LogInformation($"Airline id = {id} not found."); return(NotFound()); } return(new ObjectResult(user)); }