예제 #1
0
        public override void OnValidateTransaction(IBusinessObject businessObject)
        {
            ItemMapper mapper = DependencyContainerManager.Container.Get <ItemMapper>();
            bool       b      = mapper.CheckItemCodeExistence(businessObject.FullXml);

            if (b)
            {
                throw new ClientException(ClientExceptionId.ItemCodeAlreadyExists);
            }
        }