// GET: Policies public ActionResult Index() { var repo = new PolicyRepository(); repo.RootPath = Server.MapPath("~/"); var pvm = new PoliciesByCategoryVM(); pvm.AllPolicies = repo.GetAll(); pvm.Polcatlist = repo.GetAllPolicyCategories(); return View("Index", pvm); }
public ActionResult ManageCategory(PoliciesByCategoryVM pvm) { var repo = new PolicyRepository { RootPath = Server.MapPath("~/") }; pvm.Polcatlist = repo.GetAllPolicyCategories(); return View(pvm); }