Ejemplo n.º 1
0
 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));
 }