public static string IsModuleSelected(this HtmlHelper html, AuthUser authUser, string module) { string cssClass = "active"; string currentController = (string)html.ViewContext.RouteData.Values["controller"]; return(authUser.GetControllerModule(currentController) == module ? cssClass : String.Empty); }