public ActionResult ManagePolicies(PolicyToViewVM PVM) { var repo = new PolicyRepository(); var policies = repo.GetAllPolicies(); PVM.Policies = policies.Where(p => p.Category == PVM.categorySelected).ToList(); return View(PVM); }
public ActionResult ViewPolicies() { var PolicyToViewVM = new PolicyToViewVM(); return View(PolicyToViewVM); }
public ActionResult AddPolicy() { var policyVM = new PolicyToViewVM(); return View(policyVM); }