public IActionResult Index()
        {
            RadilistaIndexViewModel model = new RadilistaIndexViewModel();

            model.Radilista = db.Radilista.Include(p => p.Projekt).Include(g => g.Grad).ToList();

            return(View(model));
        }
        public IActionResult Pretraga(string srchTxt)
        {
            if (srchTxt == null)
            {
                return(RedirectToAction(nameof(Index)));
            }


            RadilistaIndexViewModel model = new RadilistaIndexViewModel();

            model.Radilista = db.Radilista.Include(p => p.Projekt).Include(g => g.Grad).Where(y => y.Naziv.StartsWith(srchTxt)).ToList();
            model.srchTxt   = srchTxt;

            return(View("Index", model));
        }