public async Task <ActionResult> GetCargoForLocation(string location) { var city = await _cargoRepository.GetCargoesAsync(location); if (city == null) { return(NotFound()); } return(Ok(city)); }