private async Task LoadUsers() { var t = Task.Run(() => _appIdentity.GetAll()); await t; if (t != null) { ListaAtendentes = new SelectList(t.Result, nameof(ApplicationUser.UserName), nameof(ApplicationUser.UserName), null); } }
private async Task LoadAsync() { var t = Task.Run(() => _appIdentity.GetAll()); await t; Input = new() { Users = t.Result }; }