public IEnumerable <Fotoserie> FindAllForKlant(string klantKey) { IEnumerable <Fotoserie> fotoseries = repository.FindAllForKlant(klantKey); Debug.WriteLine("fotoseries.count: " + fotoseries.Count().ToString()); fotoRepo.GetAllForFotoserieList(fotoseries.ToList()); if (fotoseries == null) { var resp = new HttpResponseMessage(HttpStatusCode.InternalServerError) { Content = new StringContent("Er is iets mis gegaan."), ReasonPhrase = "Interne server fout" }; //throw new HttpResponseException(resp); } return(fotoseries); }