示例#1
0
        public bool Remove(int findID)
        {
            bool result = false;

            Person removePerson = pr.Read(findID);

            result = pr.Delete(removePerson);
            return(result);
        }
示例#2
0
        public bool Remove(int id)
        {
            Person p = _peopleRepo.Read(id);

            if (p != null)
            {
                return(_peopleRepo.Delete(p));
            }
            return(false);
        }
        public bool Remove(int id)
        {
            Person originalPerson = FindBy(id);

            if (originalPerson == null)
            {
                return(false);
            }
            return(_peopleRepo.Delete(originalPerson));
        }
示例#4
0
        public bool Remove(int findID)
        {
            bool result = false;
            //InMemoryPeopleRepo pr = new InMemoryPeopleRepo();

            Person removePerson = pr.Read(findID);

            result = pr.Delete(removePerson);
            return(result);
        }
        public bool Remove(int id)
        {
            Person person = _peopleRepo.Read(id);

            if (person == null)
            {
                return(false);
            }
            else
            {
                return(_peopleRepo.Delete(person));
            }
        }
示例#6
0
        public bool Remove(int id)
        {
            bool   removeResult;
            Person deletePerson = this.FindBy(id);

            if (deletePerson != null)
            {
                removeResult = _memory.Delete(deletePerson);
            }
            else //couldn't find person
            {
                removeResult = false;
            }
            return(removeResult);
        }
示例#7
0
        public bool Remove(int findID)
        {
            bool result = false;
            //InMemoryPeopleRepo pr = new InMemoryPeopleRepo();

            /*List<PersonLanguage> matchingPersonLangList = _personLangservice.FindBy(findID);
             *
             * foreach (PersonLanguage personLang in matchingPersonLangList)
             * {
             *  _personLangservice.Remove(personLang);
             * }*/

            Person removePerson = pr.Read(findID);

            result = pr.Delete(removePerson);
            return(result);
        }
示例#8
0
 public bool Remove(int id)
 {
     return(_personsRepo.Delete(id));
 }
示例#9
0
 public bool Remove(int id)
 {
     return(_peopleRepo.Delete(id));
 }
示例#10
0
 public bool Remove(int id)
 {
     return(_personRepo.Delete(FindById(id)));
 }