public ActionResult Push(string company, string repository)
        {
            var key = Request.Headers["X-NuGet-ApiKey"];

            return(DoAction(
                       () => manager.Upload(GetCaller(company, key), Request.Files[0].InputStream, company, repository),
                       201, "Submission successful."));
        }
Пример #2
0
        public ActionResult Upload(string company, string repository)
        {
            var caller = Authenticate(company, manager.AuthenticateUpload(company, repository));

            if (caller == null)
            {
                return(null);
            }

            manager.Upload(caller, Request.InputStream, company, repository);
            return(null);
        }
 public ActionResult Push(string company, string repository, string key)
 {
     return(DoAction(() => manager.Upload(GetCaller(company, key), Request.InputStream, company, repository)));
 }