Пример #1
0
        public async Task <IActionResult> Index(Guid id)
        {
            ApplicationUser user = await _userManager.GetUserAsync(HttpContext.User);

            var korisnik = _ctx.Korisnik.Where(k => k.Id == id).Include(k => k.ClanZbora).ThenInclude(c => c.IdZborNavigation).SingleOrDefault();

            if (korisnik == null)
            {
                return(RedirectToAction("Nema", "Greska"));
            }

            JavniProfilViewModel model = new JavniProfilViewModel
            {
                Korisnik = korisnik,
                Aktivni  = user.Id
            };

            return(View(model));
        }
Пример #2
0
 public JavniProfilPage(Guid id)
 {
     model          = new JavniProfilViewModel(id);
     BindingContext = model;
     InitializeComponent();
 }
Пример #3
0
 public JavniProfilPage()
 {
     model          = new JavniProfilViewModel(App.Zbor.Id);
     BindingContext = model;
     InitializeComponent();
 }