public IActionResult GetPaymentStatus(Guid paymentstatusid)
        {
            var paymentStatus = _paymentStatus.GetPaymentStatus(paymentstatusid);

            if (paymentStatus != null)
            {
                return(Ok(paymentStatus));
            }
            return(NotFound($"Payment Status with id: {paymentstatusid} was not found"));
        }
Esempio n. 2
0
        private async Task DeletePaymentStatuses(PaymentStatusTableViewModel paymentStatus)
        {
            var a = "";

            if (await _pageService.DisplayAlert("Warning", $"Are you sure you want to delete{paymentStatus.StudentID}?", "Yes", "No"))
            {
                PaymentStatus.Remove(paymentStatus);
                var userPaymentStatus = await _paymentStatusStore.GetPaymentStatus(paymentStatus.Id);

                await _paymentStatusStore.DeletePaymentStatus(userPaymentStatus);
            }
        }