protected async Task <bool> ValidPaymentAsync(string dt, string endCardNumber) { Payment pay = new Payment(); pay.Date = dt; pay.Amount = 1; pay.Type = 1; //cartão de crédito pay.CardEndNumber = endCardNumber; OrderStatus obj = await _transacao.ValidPayment(pay); return(obj.Status != "APA" ? false : true); }