public async Task <ApiResponse <string> > DeleteInvoiceByIdentifier(string id) { var url = $"{EndPoint}/{id}"; var apiCall = new ApiCall <string>(Logger); return(await apiCall.Delete(url, true)); }
public async Task <ApiResponse <string> > DeleteInvoiceByKey(string companyKey, string documentType, string serie, int seriesNumber) { var url = $"{EndPoint}/{companyKey}/{documentType}/{serie}/{seriesNumber}"; var apiCall = new ApiCall <string>(Logger); return(await apiCall.Delete(url, true)); }
public async Task <ApiResponse <string> > DeleteItemByKey(string itemKey) { var url = $"{EndPoint}/{itemKey}"; var apiCall = new ApiCall <string>(Logger); return(await apiCall.Delete(url, true)); }
public async Task <ApiResponse <string> > DeleteInvoiceWTaxByIdentifier(string documentType, string serie, int seriesNumber, string companyKey, string lineId) { var url = $"{EndPoint}/{companyKey}/{documentType}/{serie}/{seriesNumber}/documentWTaxes/{lineId}"; var apiCall = new ApiCall <string>(Logger); return(await apiCall.Delete(url, true)); }
public async Task <ApiResponse <string> > DeleteSupplierPartyByKey(string partyKey) { var url = $"{EndPoint}/{partyKey}"; var apiCall = new ApiCall <string>(Logger); return(await apiCall.Delete(url, true)); }
public async Task <ApiResponse <string> > DeleteSupplierItemPriceByIdentifier(string partyKey, string lineId) { var url = $"{EndPoint}/{partyKey}/supplierItemPrices/{lineId}"; var apiCall = new ApiCall <string>(Logger); return(await apiCall.Delete(url, true)); }
public async Task <ApiResponse <string> > DeletePriceListLineByIdentifier(string itemKey, string lineId) { var url = $"{EndPoint}/{itemKey}/priceListLines/{lineId}"; var apiCall = new ApiCall <string>(Logger); return(await apiCall.Delete(url, true)); }
/// <summary> /// Deletes the object. /// </summary> /// <returns></returns> public async Task DeleteObject() { var StatusCode = await ApiCall.Delete(path, HuntedAnimal.HuntedAnimalId); //Value = StatusCode.ToString(); if (StatusCode.ToString() == "OK") { //var temp = Animal; //Animal = null; HuntedAnimals.Remove(HuntedAnimal); } }
public void OnExcluir(int id) { var api = new ApiCall(); api.Delete("/estoques", id).ContinueWith((t) => { if (t.IsCompleted) { Device.BeginInvokeOnMainThread(PopularLista); } else { Device.BeginInvokeOnMainThread(() => { MessagingCenter.Send("msgEstoque", "alert", "Erro ao excluir."); }); } }); }