Example #1
0
        public static PawContext Create(HtmlHelper htmlHelper)
        {
            PawContext context = new PawContext();

            // Step 1. Get the provider
            context.Provider = htmlHelper.ViewData["__Provider"] as Provider;

            return(context);
        }
Example #2
0
 public static PawContext GetPawContext(this HtmlHelper @this)
 {
     return(PawContext.Create(@this));
 }