Exemplo n.º 1
0
        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))));
        }
Exemplo n.º 2
0
        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)));
        }