private void BindGrid(string firstName = null, string lastName = null) { HttpResponseMessage response = korisniciService.GetActionSearchResponse("SearchByName", firstName, lastName, onlyClients.ToString()).Handle(); if (response.IsSuccessStatusCode) { dgvKorisnici.DataSource = response.GetResponseResult <List <KorisnikModel> >(); dgvKorisnici.ClearSelection(); } }
private void BindGrid(string firstName = null, string lastName = null) { HttpResponseMessage response = filmskeLicnostiService.GetActionSearchResponse("SearchByName", firstName, lastName).Handle(); if (response.IsSuccessStatusCode) { dgvFilmskeLicnosti.DataSource = response.GetResponseResult <List <FilmskaLicnostModel> >(); dgvFilmskeLicnosti.ClearSelection(); } }