public ContactInfoDto Delete(IObjectIdentifier <ulong> id)
        {
            var contactInfo = _repository.FindById(id);

            _repository.Delete(contactInfo.Id);
            return(ContactInfoDto.FromDomain(contactInfo));
        }
Пример #2
0
        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);
        }
Пример #4
0
        public int Delete(ContactInfoViewModel contactInfoViewModel)
        {
            var deleteContactInfo = GetContactInfo(contactInfoViewModel.ContactInfoId);
            var contactInfo       = EmContactInfo.SetToModel(deleteContactInfo);

            _iContactInfoRepository.Delete(contactInfo);
            return(Save());
        }
Пример #5
0
 public void Delete(long id)
 {
     _contactInfoRepository.Delete(id);
 }