protected async override Task OnInitializedAsync() { // return base.OnInitializedAsync(); _rankService = (RankService)ScopedServices.GetRequiredService(typeof(RankService)); Items = await _rankService.GetAllActive().ToListAsync(); }
protected async override Task OnInitializedAsync() { // return base.OnInitializedAsync(); _appUserService = (AppUserService)ScopedServices.GetRequiredService(typeof(AppUserService)); _bloodService = (BloodService)ScopedServices.GetRequiredService(typeof(BloodService)); _rankService = (RankService)ScopedServices.GetRequiredService(typeof(RankService)); _gamesGroupService = (GamesGroupService)ScopedServices.GetRequiredService(typeof(GamesGroupService)); Items = await _appUserService.GetAllActiveUsers().ToListAsync(); Bloods = await _bloodService.GetAllActive().ToListAsync(); Ranks = await _rankService.GetAllActive().ToListAsync(); GamesGroups = await _gamesGroupService.GetAllActiveGamesGroups().ToListAsync(); }
private async Task SaveAsync() { Items = await _rankService.GetAllActive().ToListAsync(); _showAdd = false; }