public void Delete() { m_customer_contract_person existing = _repository.Find(x => x.ID == this.ID).FirstOrDefault(); if (existing != null) { _repository.Delete(existing); } }
public void Update() { m_customer_contract_person existing = _repository.Find(x => x.ID == this.ID).FirstOrDefault(); _repository.Edit(existing, this); }