public void ActivateCostCenter(CostCenter costCenter) { var command = new ActivateCostCenterCommand { CostCenter = costCenter }; processXml.Process(command.ToXml()); }
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)); }
public bool WriteCostCenter(CostCenter costCenter) { var response = processXml.Process(costCenter.ToXml()); return(response.IsSuccess()); }