public ActionResult SelectPolicyDocCategory()
        {
            var fullPath = Server.MapPath(@"~/PolicyDocuments");
            var ops = new PolicyDocumentsOperations();
            var model = new CategoryVM()
            {
                PolicyDocumentToAdd = new PolicyDocument()
                {
                    Category = new Category()
                }
            };

            var response = ops.GetAllCategories(fullPath);

            model.CreateCategoryList(response.Data);

            return View(model);
        }
示例#2
0
        public ActionResult SelectPolicyCategories()
        {
            var fullPath = Server.MapPath(@"~/PolicyDocuments/PolicyDocuments.txt");
            var model = new CategoryVM();
            var ops = FileManager.CreatePolicyDocumentOperations();
            var response = ops.GetAllCategories(fullPath);
            model.CreateCategoryList(response.Data);

            return View(model);
        }