Ejemplo n.º 1
0
        public ActionResult PolicyView(Policy policy)
        {
            var manager = new PolicyManager();
            var response = manager.GetPolicy(policy);

            return View(response.Data);
        }
        public ActionResult DeletePolicy(Policy policy)
        {
            var manager = new PolicyManager();
            var response = manager.DeletePolicy(policy);

            return View("DeletePolicy", response.Data);
        }
Ejemplo n.º 3
0
        public ActionResult Display(string category)
        {
            var policy = new Policy();
            policy.Category = category;

            var manager = new PolicyManager();
            var response = manager.LoadAllPolicies(policy);

            return View(response.Data);
        }