public ActionResult Index()
        {
            var repo = new PoliciesDatabase();
            var policies = repo.GetAll();

            return View(policies);
        }
        public ActionResult Delete(int id)
        {
            var repo = new PoliciesDatabase();
            var input = repo.GetById(id);
            repo.Delete(input);

            return RedirectToAction("Index");
        }
        public ActionResult Add(PolicyToModifyVM input)
        {
            var repo = new PoliciesDatabase();
            var repo1 = new CategoryDatabase();

            if (ModelState.IsValid)
            {
                repo.Add(input.PolicyToEdit);
                return RedirectToAction("Index");
            }
            input.PopulateCategoryDropDown(repo1.GetAll());
            return View(input);
        }
 public ActionResult Index()
 {
     var repo = new PoliciesDatabase().GetAll();
     return View(repo);
 }