Cake.Web.Controllers.DownloadController.Download C# (CSharp) Метод

Download() приватный Метод

private Download ( string url ) : System.Web.Mvc.ActionResult
url string
Результат System.Web.Mvc.ActionResult
        private ActionResult Download(string url)
        {
            using (var client = new System.Net.WebClient())
            {
                return File(
                    client.DownloadData(url),
                    "text/plain; charset=utf-8"
                    );
            }
        }