| 1234567891011121314151617181920212223242526 |
- using LotteryWebApp.Service;
- using Microsoft.AspNetCore.Mvc;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- namespace LotteryWebApp.Components
- {
- public class HeaderHomeModel
- {
- public Profile profile;
- public UserStatus userStatus;
- }
- public class HeaderHome : ViewComponent
- {
- public async Task<IViewComponentResult> InvokeAsync(Profile profile, UserStatus userStatus)
- {
- HeaderHomeModel model = new HeaderHomeModel();
- model.profile = profile;
- model.userStatus = userStatus;
- return View("HeaderHome", model);
- }
- }
- }
|