コード例 #1
0
 public ActionResult Index(string path)
 {
     SearchRepository dataRep = new SearchRepository();
     ViewBag.Drivers = dataRep.GetDrivers();
     ViewBag.Path = path;
     ViewBag.Data = dataRep.SearchFolders(path, 0);
     ViewBag.FilesCount = dataRep.FilesCount();
     return View();
 }
コード例 #2
0
 public ActionResult Index()
 {
     SearchRepository dataRep = new SearchRepository();
     ViewBag.Drivers = dataRep.GetDrivers();
     string currentPath = ControllerContext.HttpContext.Server.MapPath("~/");
     ViewBag.Path = currentPath;
     ViewBag.Data = dataRep.SearchFolders(currentPath, 0);
     ViewBag.FilesCount = dataRep.FilesCount();
     return View();
 }