public ActionResult SnimiStudenta(IspitDodajStudentaVM model)
        {
            IspitStavke i = new IspitStavke
            {
                IspitId        = model.IspitId,
                Pristupio      = false,
                SlusaPredmetId = model.SlusaPredmetId
            };

            _context.IspitStavke.Add(i);
            _context.SaveChanges();


            return(RedirectToAction("Detalji", new { ispitId = model.IspitId }));
        }
        public ActionResult DodajStudenta(int ispitId)
        {
            int angazovanId            = _context.Ispit.Find(ispitId).AngazovanId;
            IspitDodajStudentaVM model = new IspitDodajStudentaVM
            {
                IspitId        = ispitId,
                ListaStudenata = _context.SlusaPredmet.Where(a => a.AngazovanId == angazovanId).Select(a => new Microsoft.AspNetCore.Mvc.Rendering.SelectListItem
                {
                    Value = a.Id.ToString(),
                    Text  = a.UpisGodine.Student.Ime + " " + a.UpisGodine.Student.Prezime
                }).Distinct().ToList()
            };

            return(View(model));
        }