private async Task UcitajFormu() { var request = new Model.Requests.DrzaveSearchRequest { Naziv = txtNazivDrzave.Text }; List <Model.Drzave> lista = await _serviceDrzave.Get <List <Model.Drzave> >(request); dgvDrzave.AutoGenerateColumns = false; dgvDrzave.DataSource = lista; }
public List <Model.Drzave> Get([FromQuery] Model.Requests.DrzaveSearchRequest request) { return(_service.Get(request)); }