Exemplo n.º 1
0
        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);
            });
        }
Exemplo n.º 2
0
        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);
            });
        }