public ActionResult GetFile(string id)
{
var path = _db.MailAtchs.Where(p => p.MailID == new Guid(id)).Select(p => p.Path); //获取文件名字
ArrayList n = new ArrayList();
foreach (var li in path)
{
var index = li.LastIndexOf('/');
var pa = li.Substring(index + , li.Length - index - );
n.Add(pa);
} var info = new {FName = n, FPath = path };
return Json(info, JsonRequestBehavior.AllowGet);
}