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();
            }
        }
Ejemplo n.º 2
0
        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();
            }
        }