Example #1
0
        public async Task <ApiResponse <string> > DeleteInvoiceByIdentifier(string id)
        {
            var url = $"{EndPoint}/{id}";

            var apiCall = new ApiCall <string>(Logger);

            return(await apiCall.Delete(url, true));
        }
Example #2
0
        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));
        }
Example #3
0
        public async Task <ApiResponse <string> > DeleteItemByKey(string itemKey)
        {
            var url = $"{EndPoint}/{itemKey}";

            var apiCall = new ApiCall <string>(Logger);

            return(await apiCall.Delete(url, true));
        }
Example #4
0
        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));
        }
Example #5
0
        public async Task <ApiResponse <string> > DeleteSupplierPartyByKey(string partyKey)
        {
            var url = $"{EndPoint}/{partyKey}";

            var apiCall = new ApiCall <string>(Logger);

            return(await apiCall.Delete(url, true));
        }
Example #6
0
        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));
        }
Example #7
0
        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));
        }
Example #8
0
        /// <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);
            }
        }
Example #9
0
        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.");
                    });
                }
            });
        }