public async Task <IActionResult> Index(string branch, string version, string filename) { MemoryStream memstream = new MemoryStream(); Request.Body.CopyTo(memstream); await UploadPackage.UploadFile( projectId : int.Parse(Response.Headers["x-project-id"]), memBody : memstream, version : version, filename : filename, contentType : Request.Headers["content-type"], contentLength : (long)Request.ContentLength, branch : branch, client : _storageClient, upwardDb : upwardDb, accountsDb : accountsDb ); var SuccessResponse = new CreateSuccessModel { Url = $"{HttpContext.Request.Host.ToString()}/{branch}/{version}/{filename}", Created = DateTime.Now.ToString(), Branch = branch, Version = version }; return(Json(SuccessResponse)); }