public ActionResult Search(string fileName) { List <ServerFile> files = null; if (WS.IsGoodString(fileName)) { files = new List <ServerFile>(); string basePath = Session["rootPath"].ToString(); if (WS.IsGoodString(basePath)) { WS.FindFile(basePath, files, fileName.ToLower(), this.HttpContext); } } return(View(files)); }