public void RefreshData()
        {
            VolunteerService service = new VolunteerService();

            volunteers = new ObservableCollection <VolunteerEntity>(service.GetAllVolunteers());
            this.lvVolunteers.ItemsSource = volunteers;
        }
        private bool CheckDoppione()
        {
            string name    = (this.DataContext as VolunteerEntity).Name.ToLower();
            string surname = (this.DataContext as VolunteerEntity).Surname.ToLower();

            VolunteerService       volunteerService = new VolunteerService();
            List <VolunteerEntity> volontariDb      = volunteerService.GetAllVolunteers();

            if (volontariDb.Any(x => x.Name.ToLower().Equals(name)) && volontariDb.Any(x => x.Surname.ToLower().Equals(surname)))
            {
                return(true);
            }

            return(false);
        }