// GET: Polaganje/Create public async Task <ActionResult> Create() { var students = await _userManager.GetUsersInRoleAsync("Student"); ViewBag.UserId = new SelectList(students, "Id", "Email"); var ispiti = _ispiti.SviIspiti(); ViewBag.IspitId = new SelectList(ispiti, "Id", "Predmet.Naziv", "DatumIspita"); return(View()); }
// GET: IspitController public ActionResult Index() { ViewBag.polaganja = _polaganje.SvaPolaganja(); return(View(_ispiti.SviIspiti())); }