// GET: api/Vehiculo/5 public Vehiculo Get(int id) { Vehiculo car = VBL.FindVehiculo(id); if (car == null) { throw new HttpResponseException(Request.CreateResponse(HttpStatusCode.NotFound)); } return(VBL.FindVehiculo(id)); }
public JsonResult ConsultarVehiculoID(int id) { Vehiculo vehiculo = vehiculoBL.FindVehiculo(id); return(Json(vehiculo, JsonRequestBehavior.AllowGet)); }
// GET: Vehiculo/Details/5 public ActionResult Details(int id) { return(View(BL.FindVehiculo(id))); }
// GET: Reserva/Edit/5 public ActionResult Edit(int id) { return(View(VBL.FindVehiculo(id))); }