async Task ExecuteLoadFilmsCommand() { if (IsBusy) { return; } IsBusy = true; try { var filmsCount = await filmService.FilmsCount(); pagesCount = (int)Math.Ceiling((double)filmsCount / AppConstants.PAGE_SIZE); FilmTreshold = 4; Films.Clear(); var films = await filmService.GetAllFilms(); Films.AddRange(films); FilteredFilms.AddRange(films); } finally { IsBusy = false; } }