public ActionResult UpdateConfigurationOld() { var customerCode = _identityProvider.Identity.CustomerCode; if (!String.IsNullOrEmpty(_restUrl)) { var client = _factory.CreateClient(); client.PostAsync(GetUrl(customerCode), null); } else { _service.UpdateConfiguration(customerCode); } return(RedirectToAction("Index")); }