public void CreateContact(ContactObject contact) { if (contact == null) { throw new ArgumentNullException("contact"); } var contactEntity = contactMapper.GetObject(contact); contactEntity.IsActive = true; this.unitOfWork.ContactRepository.Add(contactEntity); this.unitOfWork.Commit(); }