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