public async Task <CostUnit> SaveCostUnit(CostUnit pCostUnit) { if (pCostUnit.Id == Guid.Empty) { return(await mAsyncCLient.AddCostUnitAsync(pCostUnit)); } return(await mAsyncCLient.EditCostUnitAsync(pCostUnit)); }
public CostUnit EditCostUnit(CostUnit pCostUnit) => mBlue10Async.EditCostUnitAsync(pCostUnit).Sync();