예제 #1
0
 public async Task <CostCenter> SaveCostCenter(CostCenter pCostCenter)
 {
     if (pCostCenter.Id == Guid.Empty)
     {
         return(await mAsyncCLient.AddCostCenterAsync(pCostCenter));
     }
     return(await mAsyncCLient.EditCostCenterAsync(pCostCenter));
 }
예제 #2
0
 public CostCenter AddCostCenter(CostCenter pCostCenter) => mBlue10Async.AddCostCenterAsync(pCostCenter).Sync();