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()); }
// 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)); }
// GET: User public ActionResult Index() { CheckManager manager = new CheckManager(User.Identity.Name); UserInfoViewModel m = new UserInfoViewModel() { UserLogin = "******", Files = manager.GetFiles("*") }; return(View(m)); }