| 123456789101112131415161718192021222324 |
- using Microsoft.AspNetCore.Mvc;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- namespace LotteryWebApp.Components
- {
- public class SmallHeaderModel
- {
- public String url;
- public String title;
- }
- public class SmallHeader : ViewComponent
- {
- public async Task<IViewComponentResult> InvokeAsync(String url, String title)
- {
- SmallHeaderModel model = new SmallHeaderModel();
- model.url = url;
- model.title = title;
- return View("SmallHeader", model);
- }
- }
- }
|