示例#1
0
        public IHttpActionResult Delete(int vehicleId)
        {
            var result = _repo.DeleteVehicle(vehicleId);

            return(result ? Ok(_repo.GetAllVehicles()) : SendBadRequest());
        }
示例#2
0
 public void Delete(int id)
 {
     _vehicleRepo.DeleteVehicle(id);
 }