示例#1
0
 public ActionResult Search(string path)
 {
     SearchRepository dataRep = new SearchRepository();
     ViewBag.Path = path;
     ViewBag.Data = dataRep.SearchFolders(path, 0);
     ViewBag.FilesCount = dataRep.FilesCount();
     return PartialView("MainInfo");
 }
示例#2
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();
 }
示例#3
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();
 }