public void UpdatePerson(Person item)
        {
            var oldItem = _people.FirstOrDefault(i => i.ID == item.ID);

            if (oldItem != null)
            {
                oldItem = item;
            }
        }
        private void Register()
        {
            if (IsPhoneBad())
            {
                Error = "Phone Number too long";
                return;
            }

            var volunteer = new Person { FirstName = firstName, LastName = lastName, IsSenior = false, Age = age, City = city, PhoneNumber = phoneNumber };
            _personRepo.AddPerson(volunteer);
            //personID = volunteer.ID;
        }
 public void DeletePerson(Person item)
 {
     _people.Remove(item);
 }
 public void AddPerson(Person item)
 {
     item.ID = _people.Last().ID + 1;
     _people.Add(item);
 }