Exemplo n.º 1
0
        protected async Task HandleButtonClick()
        {
            Page = 1;

            var results = await FetchMovieResults();

            SearchActorComponent.ClearActor();
            SearchDirectorComponent.ClearDirector();
            SearchKeywordComponent.ClearKeyword();

            if (results is not null)
            {
                Page         = results.Page;
                Results      = results.Results;
                TotalPages   = results.Total_Pages;
                TotalResults = results.Total_Results;
            }

            ScrollTop();
        }
Exemplo n.º 2
0
 protected void RemoveSelectedDirector(Person director)
 {
     SearchDirectorComponent.ClearDirector();
     SelectedDirectors.Remove(director);
 }