public byte[] HandleGetAllRegisteredUsers(string json) { GetAllRegisteredUsersRequest res = JsonConvert.DeserializeObject <GetAllRegisteredUsersRequest>(json); List <User> ans = userService.GetAllRegisteredUsers(); string jsonAns = Seralize(new GetAllRegisteredUsersResponse(converter.ToUserNameList(ans), "")); return(security.Encrypt(jsonAns)); }
async public Task <GetAllRegisteredUsersResponse> GetAllActiveUsers() { GetAllRegisteredUsersRequest request = new GetAllRegisteredUsersRequest(); comm.SendRequest(request); GetAllRegisteredUsersResponse response = await comm.Get <GetAllRegisteredUsersResponse>(); return(response); }