// GET public IActionResult Index() { var userId = _userManager.GetUserId(HttpContext.User); var hobbies = _userRepo.GetHobbies(userId); var individual = _userRepo.GetIndividual(userId); var organization = _userRepo.GetOrganization(userId); var model = new InsideViewModel { Individuals = individual, Organizations = organization, Hobbies = hobbies }; return(View(model)); }
public InsideView(int tripID) { InitializeComponent(); BindingContext = new InsideViewModel(this.Navigation, tripID); }