public IActionResult SetCredentials(SetCredentialsModel model) { this.Response.Cookies.Append(nameof(model.Environment), model.Environment); this.Response.Cookies.Append(nameof(model.SplititApiUrl), model.SplititApiUrl); this.Response.Cookies.Append(nameof(model.SplititApiKey), model.SplititApiKey); this.Response.Cookies.Append(nameof(model.SplititApiPassword), model.SplititApiPassword); this.Response.Cookies.Append(nameof(model.SplititApiUsername), model.SplititApiUsername); this.Response.Cookies.Append(nameof(model.FlexFieldsUrlRoot), model.FlexFieldsUrlRoot); this.Response.Cookies.Append(nameof(model.FlexFieldsV2UrlRoot), model.FlexFieldsV2UrlRoot); this.Response.Cookies.Append(nameof(model.PaymentFormEmbedderUrlRoot), model.PaymentFormEmbedderUrlRoot); this.Response.Cookies.Append(nameof(model.UpstreamUrlRoot), model.UpstreamUrlRoot); this.TempData["show-success"] = true; return(View(model)); }
public IActionResult SetCredentials() { return(View(SetCredentialsModel.FromCurrent(this.CredentialSource))); }