public ActionResult GetLocaties(Leerling leerling, string continentNaam, string landNaam) { if (!leerling.IsActief) { return(RedirectToAction("Index", "Home")); } ICollection <Locatie> locaties = continentRepository.GeefAlleLocatiesAlfabetisch(continentNaam, landNaam); return(Json(locaties.Select(l => new LocatieViewModel(l)), JsonRequestBehavior.AllowGet)); }