public void SavePriceChange(PriceChangeVM vm, Action<int> callback) { PriceChangeMaster entity = vm.ConvertVM<PriceChangeVM, PriceChangeMaster>(); string relativeUrl = "/InvoiceService/Invoice/SavePriceChange"; restClient.Create<int>(relativeUrl, entity, (obj, args) => { if (args.FaultsHandle()) return; callback(args.Result); }); }
public void UpdatePriceChange(PriceChangeVM vm, Action<PriceChangeVM> callback) { PriceChangeMaster entity = vm.ConvertVM<PriceChangeVM, PriceChangeMaster>(); string relativeUrl = "/InvoiceService/Invoice/UpdatePriceChange"; restClient.Create<PriceChangeMaster>(relativeUrl, entity, (obj, args) => { if (args.FaultsHandle()) return; PriceChangeVM temp = args.Result.Convert<PriceChangeMaster, PriceChangeVM>(); callback(temp); }); }