public static async Task <CashBook> UpdateCashBookAsync(IRestDataMapper mapper, CashBook data)
        {
            CashBook reds = new CashBook();

            if (mapper == null)
            {
                return(reds);
            }
            string url = $"cashbook/api/v1/cashbooks/{data.id}";

            reds = await mapper.PutDataAsync(url, data);

            return(reds);
        }
예제 #2
0
        public static async Task <Bank> UpdateBankAsync(IRestDataMapper mapper, Bank data)
        {
            Bank reds = new Bank();

            if (mapper == null)
            {
                return(reds);
            }
            string url = $"bank/api/v1/banks/{data.id}";

            reds = await mapper.PutDataAsync(url, data);

            return(reds);
        }
        public static async Task <UnitOfMeasurement> UpdateUnitOfMeasurementAsync(IRestDataMapper mapper, UnitOfMeasurement data)
        {
            UnitOfMeasurement reds = new UnitOfMeasurement();

            if (mapper == null)
            {
                return(reds);
            }
            string url = $"item/api/v1/uoms/{data.id}";

            reds = await mapper.PutDataAsync(url, data);

            return(reds);
        }
예제 #4
0
        public static async Task <Supplier> UpdateSupplierAsync(IRestDataMapper mapper, Supplier data)
        {
            Supplier reds = new Supplier();

            if (mapper == null)
            {
                return(reds);
            }
            string url = $"supplier/api/v1/suppliers/{data.id}";

            reds = await mapper.PutDataAsync(url, data);

            return(reds);
        }
        public static async Task <StoreInfor> UpdateStoreInforAsync(IRestDataMapper mapper, StoreInfor data)
        {
            StoreInfor reds = new StoreInfor();

            if (mapper == null)
            {
                return(reds);
            }
            string url = $"item/api/v1/itemstores/{data.id}";

            reds = await mapper.PutDataAsync(url, data);

            return(reds);
        }
        public static async Task <ItemGroup> UpdateItemGroupAsync(IRestDataMapper mapper, ItemGroup data)
        {
            ItemGroup reds = new ItemGroup();

            if (mapper == null)
            {
                return(reds);
            }
            string url = $"item/api/v1/itemgroups/{data.id}";

            reds = await mapper.PutDataAsync(url, data);

            return(reds);
        }
예제 #7
0
        public static async Task <Purchase> UpdatePurchaseAsync(IRestDataMapper mapper, Purchase data)
        {
            Purchase reds = new Purchase();

            if (mapper == null)
            {
                return(reds);
            }
            string url = $"purchasing/api/v1/purchases/{data.id}";

            reds = await mapper.PutDataAsync(url, data);

            return(reds);
        }
예제 #8
0
        public static async Task <Customer> UpdateCustomerAsync(IRestDataMapper mapper, Customer data)
        {
            Customer reds = new Customer();

            if (mapper == null)
            {
                return(reds);
            }
            string url = $"customer/api/v1/customers/{data.id}";

            reds = await mapper.PutDataAsync(url, data);

            return(reds);
        }
예제 #9
0
        public static async Task <Branch> UpdateBranchAsync(IRestDataMapper mapper, Branch data)
        {
            Branch reds = new Branch();

            if (mapper == null)
            {
                return(reds);
            }
            string url = $"branch/api/v1/branches/{data.id}";

            reds = await mapper.PutDataAsync(url, data);

            return(reds);
        }
        public static async Task <SaleInvoice> UpdateSaleAsync(IRestDataMapper mapper, SaleInvoice data)
        {
            SaleInvoice reds = new SaleInvoice();

            if (mapper == null)
            {
                return(reds);
            }
            string url = $"selling/api/v1/sales/{data.id}";

            reds = await mapper.PutDataAsync(url, data);

            return(reds);
        }
        public static async Task <User> UpdateUserAsync(IRestDataMapper mapper, User data)
        {
            User reds = new User();

            if (mapper == null)
            {
                return(reds);
            }
            string url = $"user/api/v1/users/{data.id}";

            reds = await mapper.PutDataAsync(url, data);

            return(reds);
        }