コード例 #1
0
        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);
        }
コード例 #2
0
 public ActionResult ViewPolicies()
 {
     var PolicyToViewVM = new PolicyToViewVM();
     return View(PolicyToViewVM);
 }
コード例 #3
0
 public ActionResult AddPolicy()
 {
     var policyVM = new PolicyToViewVM();
     return View(policyVM);
 }