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); }
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); }
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); }
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); }
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); }
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); }
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); }