Ejemplo n.º 1
0
        private void ProcessAddOrUpdate(IInvocation invocation)
        {
            var content = (IContent)invocation.Arguments[0];

            if (content.HasIdentity)
            {
                _unitOfWork.RegisterChanged(content, (IUnitOfWorkRepository)invocation.Proxy);
                return;
            }
            invocation.Proceed();
        }