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)); }
public JavniProfilPage(Guid id) { model = new JavniProfilViewModel(id); BindingContext = model; InitializeComponent(); }
public JavniProfilPage() { model = new JavniProfilViewModel(App.Zbor.Id); BindingContext = model; InitializeComponent(); }