Ejemplo n.º 1
0
        public IActionResult OnGet(Guid paymentTypeId)
        {
            PaymentType = paymentTypeViewModel.GetPaymentTypeById(paymentTypeId);

            if (PaymentType == null)
            {
                return(RedirectToPage("./NotFound"));
            }

            return(Page());
        }
Ejemplo n.º 2
0
        public IActionResult OnGet(Guid?paymentTypeId)
        {
            if (paymentTypeId.HasValue)
            {
                PaymentType = paymentTypeViewModel.GetPaymentTypeById(paymentTypeId.Value);
            }
            else
            {
                PaymentType = new PaymentType();
            }

            if (PaymentType == null)
            {
                return(RedirectToPage("./NotFound"));
            }

            return(Page());
        }