Пример #1
0
        // 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);
        }
Пример #2
0
        public ActionResult ManageCategory(PoliciesByCategoryVM pvm)
        {
            var repo = new PolicyRepository { RootPath = Server.MapPath("~/") };
            pvm.Polcatlist = repo.GetAllPolicyCategories();

            return View(pvm);
        }