コード例 #1
0
 public void OnGet()
 {
     brojRegistrovanihClanova = userManager.Users.Count();
     brojPorudzbina           = porudzbinaRepository.GetPorudzbine().Result.Count();
     brojStripova             = stripRepository.GetStripove().Result.Count();
     brojPoruka = kontaktRepository.brojPoruka();
 }
コード例 #2
0
        public async Task <IActionResult> OnGetAsync()
        {
            if (signInManager.IsSignedIn(User))
            {
                if (User.IsInRole("SuperAdmin"))
                {
                    return(RedirectToPage("Administrator"));
                }
                var ulogvanUser = signInManager.UserManager.GetUserId(User);

                Stripovi = await stripRepository.UserStripoviVanKorpe(ulogvanUser);
            }
            else
            {
                Stripovi = await stripRepository.GetStripove();
            }
            brojStripovauProdaji = Stripovi.Count();

            return(Page());
        }