示例#1
0
        private async void TodoEditorForm_LoadAsync(object sender, EventArgs e)
        {
            _users = await _userQueryService.GetAllAsync();

            _users.Insert(0, User.Empty);

            UsersBox.DataSource    = _users;
            UsersBox.DisplayMember = nameof(User.Name);
            _pendingChanges        = false;
        }
示例#2
0
        public async Task <DataCollection <UserDto> > GetAll(int page = 1, int take = 10, string ids = null)
        {
            IEnumerable <string> users = ids?.Split(',');

            return(await userQueryService.GetAllAsync(page, take, users));
        }
 public async Task <DataCollection <UserDto> > GetAllAsync(int page = 1, int take = 10)
 {
     return(await _userQueryService.GetAllAsync(page, take));
 }