public IEnumerable <Klant> GetKlanten(string voornaam = null, string achternaam = null, string email = null, string telefoonNummer = null) { if (string.IsNullOrEmpty(voornaam) && string.IsNullOrEmpty(achternaam) && string.IsNullOrEmpty(email) && string.IsNullOrEmpty(telefoonNummer)) { return(_klantenRepository.GetAll()); } return(_klantenRepository.GetBy(voornaam, achternaam, email)); }
public object GetAll(string type) { switch (type) { case "Klant": return(_klantRepo.GetAll()); case "Limousine": return(_limoRepo.GetAll()); case "Locatie": return(_locaRepo.GetAll()); case "Staffelkorting": return(_staffelRepo.GetAll()); case "Reservering": return(_reserRepo.GetAll()); default: break; } return(null); }