public async Task <ResultMessage> GetPage(string userName, string account, int pageIndex, int pageSize) { try { return(new ResultMessage { Success = true, Status = EnumStatus.Success, TotalCount = await _queryService.GetCountAsync(userName), Data = _queryService.FindUsersForPageAsync(userName, pageIndex, pageSize) }); } catch (Exception exception) { return(new ResultMessage { Success = false, Status = EnumStatus.Failure, Message = exception.Message }); } }