예제 #1
0
        public ActionResult Check()
        {
            // return user's documents and .docxreq
            CheckManager manager = new CheckManager(User.Identity.Name);

            List <string> filesToCheck = manager.GetFiles("*.docx");
            List <string> reqFiles     = manager.GetFiles("*.req");

            ViewBag.FilesToCheck = filesToCheck ?? new List <string>();
            ViewBag.ReqFiles     = reqFiles ?? new List <string>();

            return(View());
        }
예제 #2
0
        // GET: Download
        public ActionResult Index()
        {
            Infrastructure.Logger.Info("Entering Download/Index...");
            var files = store.GetFiles("*.req").Select(name => new FileViewModel {
                FileName = name
            });

            return(View(files));
        }
예제 #3
0
        // GET: User
        public ActionResult Index()
        {
            CheckManager manager = new CheckManager(User.Identity.Name);

            UserInfoViewModel m = new UserInfoViewModel()
            {
                UserLogin = "******",
                Files     = manager.GetFiles("*")
            };

            return(View(m));
        }