public ActionResult GetListJson(string folderId) { string userId = OperatorProvider.Provider.Current().UserId; var data = fileInfoBLL.GetList(folderId, userId); return(ToJsonResult(data)); }
public ActionResult GetListJson(string folderId, string fileName) { string userId = OperatorProvider.Provider.Current().UserId; var data = fileInfoBLL.GetList(folderId, userId, fileName); foreach (FileInfoEntity fi in data) { if (fi.FileType != "folder") { if (!System.IO.File.Exists(Server.MapPath(fi.FilePath))) { fi.FilePath = "404"; } else { fi.FilePath = "200"; } } } return(ToJsonResult(data)); }