public ActionResult DownloadTrains(string id) { var dto = OrgMapProvider.Get(id); string path = Const.RealTrainsPath(id); return(File(path, "application/octet-stream", string.Format(string.Format("{0}.xlsx", dto.DistributorName)))); }
public ActionResult DownloadOrg(string id) { var dto = OrgMapProvider.Get(id); string path = Const.RealOrgMapPath(id); return(File(path, "application/octet-stream", string.Format("{0}.doc", dto.OrgMapFile))); }