Ejemplo n.º 1
0
        public async Task <ActionResult> GetCargoForLocation(string location)
        {
            var city = await _cargoRepository.GetCargoesAsync(location);

            if (city == null)
            {
                return(NotFound());
            }
            return(Ok(city));
        }