Example #1
0
        internal ActionResult UploadValues(string resourceID, string environment, string startActivityId, string wareWolfResumeUrl, string userName, string password)
        {
            using (var client = _clientFactory.New(userName, password))
            {
                var nameValueCollection = new NameValueCollection
                {
                    { "resourceID", new StringBuilder(resourceID).ToString() },
                    { "startActivityId", new StringBuilder(startActivityId).ToString() },
                    { "environment", new StringBuilder(environment).ToString() },
                };

                TempData.Remove("allowLogin");
                var returnValue = client.UploadValues(wareWolfResumeUrl, "POST", nameValueCollection);
                return(Json(returnValue));
            }
        }