Пример #1
0
        public IActionResult DeleteCargo(int cargoId)
        {
            if (!_cargoRepository.CargoExists(cargoId))
            {
                return(NotFound($"Cargo {cargoId} não existe!"));
            }

            _cargoRepository.DeleteCargo(cargoId);

            return(NoContent());
        }