public bool Remove(int findID) { bool result = false; Person removePerson = pr.Read(findID); result = pr.Delete(removePerson); return(result); }
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)); }
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)); } }
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); }
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); }
public bool Remove(int id) { return(_personsRepo.Delete(id)); }
public bool Remove(int id) { return(_peopleRepo.Delete(id)); }
public bool Remove(int id) { return(_personRepo.Delete(FindById(id))); }