public ActionResult InspectionsListPartial() { var model = new InspectionsViewModel() { AllInspections = _inspectionService.GetAllVehicleInspections(CurrentTenantId) }; return PartialView("_GridPartial", model); }
public ActionResult Index() { if (!caSession.AuthoriseSession()) { return Redirect((string)Session["ErrorUrl"]); } var model = new InspectionsViewModel() { AllInspections = _inspectionService.GetAllVehicleInspections(CurrentTenantId) }; return View(model); }