Example #1
0
        public void ActivateCostCenter(CostCenter costCenter)
        {
            var command = new ActivateCostCenterCommand
            {
                CostCenter = costCenter
            };

            processXml.Process(command.ToXml());
        }
Example #2
0
        public CostCenter ReadCostCenter(string costCenterType, string costCenterCode)
        {
            var command = new ReadCostCenterCommand
            {
                Office         = session.Office,
                CostCenterType = costCenterType,
                CostCenterCode = costCenterCode
            };
            var response = processXml.Process(command.ToXml());

            return(CostCenter.FromXml(response));
        }
Example #3
0
        public bool WriteCostCenter(CostCenter costCenter)
        {
            var response = processXml.Process(costCenter.ToXml());

            return(response.IsSuccess());
        }