public ActionResult Delete(Category toDel)
        {
            var repo = new CategoryDatabase();
            repo.Delete(toDel.Id.ToString());

            return RedirectToAction("Index");
        }
        public ActionResult Add()
        {
            var model = new PolicyToModifyVM();
            var repo = new CategoryDatabase();
            model.PopulateCategoryDropDown(repo.GetAll());

            return View(model);
        }
        public ActionResult Add(Category toAdd)
        {
            var repo = new CategoryDatabase();

            if (ModelState.IsValid)
            {
                repo.Add(toAdd);
                return RedirectToAction("Index");
            }

            return View();
        }
        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 CategoryDatabase().GetAll();

            return View(repo);
        }