コード例 #1
0
        static ResponseMessage Add(string name, string qbUnit, long unitTypeId)
        {
            MaestroUnit item = new MaestroUnit()
            {
                Name           = name,
                QuickBooksUnit = qbUnit,
                UnitType       = new MaestroUnitType()
                {
                    Id = unitTypeId
                },
            };

            RequestMessage request = MessagePrepareAgent.GetRequest(action, tranCode, "", new List <ITransactionEntity>(new ITransactionEntity[] { item }));

            return(new MessageBroker().Execute(request));
        }