public Task ProcessRequest(IDotvvmRequestContext context) { context.RedirectToRoute("FeatureSamples_Redirect_Redirect"); throw new Exception("This should never happen!"); }
public static void ChangeCulture(this IDotvvmRequestContext context, string cultureName) { Cookies.Set(nameof(CultureInfo), nameof(CultureInfo.Name), cultureName); context.RedirectToRoute(context.Route.RouteName, new { CultureName = cultureName }); }