| 123456789101112131415161718192021222324 |
- using Microsoft.AspNetCore.Mvc;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- namespace LotteryWebApp.Components
- {
- public class PaymentFormModel
- {
- public String data { get; set; }
- public string ticketType { get; set; }
- }
- public class PaymentForm : ViewComponent
- {
- public async Task<IViewComponentResult> InvokeAsync(String data, String ticketType)
- {
- PaymentFormModel model = new PaymentFormModel();
- model.data = data;
- model.ticketType = ticketType;
- return View("PaymentForm", model);
- }
- }
- }
|