public ActionResult Index(DiscoveryServiceModel model) { String delimiter = [email protected]("?") ? "&" : "?"; var redirectToURL = $"{ model.@return }{ delimiter }{ model.returnIDParam }={ model.SelectedIdp }"; return(Redirect(redirectToURL)); }
public ActionResult Index(DiscoveryServiceModel model) { string delimiter = [email protected]("?") ? "&" : "?"; return(this.Redirect(string.Format( "{0}{1}{2}={3}", model.@return, delimiter, model.returnIDParam, model.SelectedIdp))); }
public ActionResult Index(DiscoveryServiceModel model) { if (model.isPassive || Request.HttpMethod == "POST") { string delimiter = [email protected]("?") ? "&" : "?"; return(Redirect(string.Format( "{0}{1}{2}={3}", model.@return, delimiter, model.returnIDParam, model.SelectedIdp))); } return(View(model)); }