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; }
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)); }