コード例 #1
0
        public static async Task <int> DeleteSupplierAsync(IRestDataMapper mapper, long SupplierId)
        {
            int reds = 0;

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

            reds = await mapper.DeleteDataAsync <int>(url);

            return(reds);
        }
コード例 #2
0
        public static async Task <int> DeleteCashBookAsync(IRestDataMapper mapper, long cbId)
        {
            int reds = 0;

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

            reds = await mapper.DeleteDataAsync <int>(url);

            return(reds);
        }
コード例 #3
0
        public static async Task <int> DeleteItemGroupAsync(IRestDataMapper mapper, int itemGroupId)
        {
            int reds = 0;

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

            reds = await mapper.DeleteDataAsync <int>(url);

            return(reds);
        }
コード例 #4
0
        public static async Task <int> DeleteStoreInforAsync(IRestDataMapper mapper, long storeInforId)
        {
            int reds = 0;

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

            reds = await mapper.DeleteDataAsync <int>(url);

            return(reds);
        }
コード例 #5
0
        public static async Task <int> DeletePurchaseAsync(IRestDataMapper mapper, int piId)
        {
            int reds = 0;

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

            reds = await mapper.DeleteDataAsync <int>(url);

            return(reds);
        }
コード例 #6
0
        public static async Task <int> DeleteSaleItemAsync(IRestDataMapper mapper, int siId)
        {
            int reds = 0;

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

            reds = await mapper.DeleteDataAsync <int>(url);

            return(reds);
        }
コード例 #7
0
        public static async Task <int> DeleteUserAsync(IRestDataMapper mapper, int userId)
        {
            int reds = 0;

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

            reds = await mapper.DeleteDataAsync <int>(url);

            return(reds);
        }