예제 #1
0
 public async Task <PrivilegeBaseResult> CatchUserList([FromBody] ArguCatchUser arguCatchUser)
 {
     if (arguCatchUser == null)
     {
         throw new PrivilegeException((int)EnumPrivilegeException.入参为空, "Argument is null,please check Argu");
     }
     return(await _privilegeUserDispatch.CatchUserList(arguCatchUser));
 }
예제 #2
0
        public async Task <PrivilegeBaseResult> CatchUserList(ArguCatchUser arguCatchUser)
        {
            if (arguCatchUser.id > 0)
            {
                var resultCatchUser = await _userLocalDAL.FindByIDAsync(arguCatchUser.id);

                return(Successed(resultCatchUser, "用户信息"));
            }
            else
            {
                var resultCatchUser = await _userLocalDAL.GetAllAsync();

                return(Successed(resultCatchUser, "用户列表"));
            }
        }