예제 #1
0
        public Task ProcessRequest(IDotvvmRequestContext context)
        {
            context.RedirectToRoute("FeatureSamples_Redirect_Redirect");

            throw new Exception("This should never happen!");
        }
예제 #2
0
 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 });
 }