public ContactInfoDto Delete(IObjectIdentifier <ulong> id) { var contactInfo = _repository.FindById(id); _repository.Delete(contactInfo.Id); return(ContactInfoDto.FromDomain(contactInfo)); }
public void DeleteContactInfo(int id) { var contactInfo = GetContactInfo(id); _iContactInfoRepository.Delete(contactInfo); Save(); }
public HttpResponseMessage Delete(long id) { _contactInfoRepository.Delete(id); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK); return(response); }
public int Delete(ContactInfoViewModel contactInfoViewModel) { var deleteContactInfo = GetContactInfo(contactInfoViewModel.ContactInfoId); var contactInfo = EmContactInfo.SetToModel(deleteContactInfo); _iContactInfoRepository.Delete(contactInfo); return(Save()); }
public void Delete(long id) { _contactInfoRepository.Delete(id); }