public IHttpActionResult ReturnCar(int RentalID, DateTime actualEndDate) { CarsLogic cars = new CarsLogic(); var results = cars.ReturnCar(RentalID, actualEndDate); if (results == 0) { return(NotFound()); } return(Ok(results)); }