public static PawContext Create(HtmlHelper htmlHelper) { PawContext context = new PawContext(); // Step 1. Get the provider context.Provider = htmlHelper.ViewData["__Provider"] as Provider; return(context); }
public static PawContext GetPawContext(this HtmlHelper @this) { return(PawContext.Create(@this)); }