コード例 #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);
        }