public ActionResult Checkout(int id) { if (Garage.CheckOutVehicle(id)) { return(Json(new { type = true, message = "Vechicle was checkedout!" })); } else { return(Json(new { type = false, message = "Vechicle was not checkedout!" })); } }