示例#1
0
 public async Task <CostUnit> SaveCostUnit(CostUnit pCostUnit)
 {
     if (pCostUnit.Id == Guid.Empty)
     {
         return(await mAsyncCLient.AddCostUnitAsync(pCostUnit));
     }
     return(await mAsyncCLient.EditCostUnitAsync(pCostUnit));
 }
示例#2
0
 public CostUnit AddCostUnit(CostUnit pCostUnit) => mBlue10Async.AddCostUnitAsync(pCostUnit).Sync();