Example #1
0
        public void Add(ContactEntity entity)
        {
            if (entity == null)
            {
                throw new InvalidEntityException("Invalid contact entity");
            }

            var model = new ContactModel()
            {
                Id = entity.Id.Value
            };

            model.FillFromEntity(entity);
            Context.Contacts.Add(model);
        }