Ejemplo n.º 1
0
        public coreModel.Contact Create(coreModel.Contact contact)
        {
            var entity = contact.ToFoundation();

            coreModel.Contact retVal = null;
            using (var repository = _repositoryFactory())
            {
                repository.Add(entity);
                CommitChanges(repository);
            }
            retVal = GetById(contact.Id);
            return(retVal);
        }