Exemplo n.º 1
0
 public Volunteer GetVolunteerByEmail(string email)
 {
     return(_volunteerRepository.GetVolunteerByEmail(email));
 }
Exemplo n.º 2
0
        public bool VolunteerExist(string email)
        {
            var volunteer = _volunteerRepository.GetVolunteerByEmail(email);

            return(volunteer != null);
        }
Exemplo n.º 3
0
        public bool IsSatisfiedBy(Volunteer entity)
        {
            var volunteer = _volunteerRepository.GetVolunteerByEmail(entity.Email);

            return(volunteer == null || volunteer.Id == entity.Id);
        }