示例#1
0
 /// <summary>
 /// 提示没有权限
 /// </summary>
 /// <returns></returns>
 protected new IActionResult Unauthorized()
 {
     if (IsRequestJson)
     {
         return(JResult.Unauthorized(T));
     }
     else
     {
         return(PromptView(string.Format(T["security_unauthorized"], HttpContext.GetRouteString("org") + WebContext.LoginUrl)));
     }
 }
示例#2
0
 /// <summary>
 /// 提示没有权限
 /// </summary>
 /// <returns></returns>
 protected new IActionResult Unauthorized()
 {
     return(JResult.Unauthorized(T));
 }