public async Task <IActionResult> ListaStudenata() { StudentskiDomSingleton studentskiDom = StudentskiDomSingleton.getInstance(); await studentskiDom.RefreshStudentsAsync(); List <Student> studenti = studentskiDom.Studenti; ViewBag.ListaStudenata = studenti; ViewBag.id = UpravaId; return(View()); }
public async Task <IActionResult> LoginAsync() { //ova se prva pokrece StudentskiDomSingleton studentskiDom = StudentskiDomSingleton.getInstance(); studentskiDom.SetContext(_context); await studentskiDom.RefreshStudentsAsync(); await studentskiDom.RefreshZahtjeviAsync(); studentskiDom.RefreshUpravaAsync(); await studentskiDom.RefreshPaviljonAsync(); await studentskiDom.RefreshRestoranAsync(); return(View()); }