public ActionResult Index() { if (Request.IsAjaxRequest()) { return(PartialView("VehiclesList", Garage.GetVehicles())); } return(View(Garage.GetVehicles())); }
// GET: Vehicles public ActionResult Index() { var vehicles = db.GetVehicles(); return(View(vehicles.ToList())); }