public IActionResult SetLanguage(string culture, string returnUrl) { try { if (string.IsNullOrEmpty(returnUrl)) { returnUrl = "/"; } CookieHandler.AppendCookie(Response, culture); } catch { } return(LocalRedirect(returnUrl)); }
public IActionResult SetLanguage(string culture, string returnUrl) { try { if (string.IsNullOrEmpty(returnUrl)) { returnUrl = "/"; } CookieHandler.AppendCookie(Response, culture); } catch { } return(LocalRedirect(returnUrl)); }