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());
        }
Example #2
0
        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());
        }