Ejemplo n.º 1
0
 public static _ResourceMngr Create(HttpContext context)
 {
     return(new _ResourceMngr(ResourceMngr.GetCurrentLang(context)));
 }
 public static string GetMessage(this Controller controller, string key)
 {
     return(ResourceMngr.GetMessage(key, controller));
 }
 public static string GetLabel(this Controller controller, string key)
 {
     return(ResourceMngr.GetLabel(key, controller));
 }
 public static string GetMessage(this IHtmlHelper htmlHelper, string key)
 {
     return(ResourceMngr.GetMessage(key, htmlHelper));
 }
 public static string GetCurrentLang(this HttpContext context)
 {
     return(ResourceMngr.GetCurrentLang(context));
 }
 public static string GetCurrentLang(this IHtmlHelper htmlHelper)
 {
     return(ResourceMngr.GetCurrentLang(htmlHelper == null || htmlHelper.ViewContext == null ? null : htmlHelper.ViewContext.HttpContext));
 }