Пример #1
0
 public ServiceResult SignOut([FromBody] ZzbHomeGetTableInfomationViewModel model)
 {
     return(Json(() =>
     {
         SignOut();
         return ObjectResult(true);
     }, "退出成功"));
 }
Пример #2
0
 public ServiceResult GetTableInfomation([FromBody] ZzbHomeGetTableInfomationViewModel model)
 {
     return(Json(() =>
     {
         if (!NavTrees.IsExistPermission(UserId, model.NavId))
         {
             HttpContext.Response.StatusCode = 403;
             return null;
         }
         return ObjectResult(TableInfomation.GetTableInfomation(model.NavId));
     }, "获取表单信息失败"));
 }