Пример #1
0
        public async Task <IActionResult> NekiGljivarDrustvo(int id)
        {
            var gljivarDrustvo = await _gljivarDrustvoService.getGljivarDrustvoDetails(id);

            var objave = await _objavaService.getObjavas();

            ViewBag.objave = objave;
            var korisnici = await _korisnikService.getKorisnici();

            ViewBag.korisnici = korisnici;
            var dogadaji = await _dogadajiService.getDogadaji();

            ViewBag.dogadaji = dogadaji;

            return(View(gljivarDrustvo));
        }
Пример #2
0
        public async Task <IActionResult> Index()
        {
            var dogadajs = await _dogadajService.getDogadaji();

            return(View(dogadajs));
        }