Ejemplo n.º 1
0
        public async Task <IActionResult> Delete([FromRoute] string plate)
        {
            try
            {
                await _vehicleBusiness.DeleteVehicle(plate);

                return(Ok());
            }
            catch (InvalidPlateException)
            {
                return(BadRequest("A plca informada não está correta!"));
            }
        }
 public bool Delete(int id)
 {
     return(vehicleB.DeleteVehicle(id));
 }