public async Task <IActionResult> Index(int page = 1, string search = null) { var filter = new KorisnikSearchRequest() { Ime = search, Prezime = search, Email = search, Uloge = new List <string> { "Uposlenik" } }; var paginationQuery = new PaginationQuery(page, 10); var response = await _restoranApi.GetKorisnikAsync(filter, paginationQuery); var model = new UposlenikPrikaz(); if (response.StatusCode == HttpStatusCode.OK) { model = new UposlenikPrikaz() { Content = response.Content, Search = search }; } return(View(model)); }