public IActionResult Delete(string id) { Error res = _parking.DelCar(id); if (res == Error.Success) { return(Ok($"The machine whis number {id} was successfully deleted.")); } else if (res == Error.NegativeBalance) { return(BadRequest($"The car with the number {id} has a negative balance. Please Replenish balance.")); } return(BadRequest($"The car with the number {id} is not found. Please try again.")); }