using BethanysPieShopHRM.Shared.Domain; using Webshop.App.Components.Widgets; namespace Webshop.App.Pages { public partial class Home { public Employee Employee { get; set; } public List Widgets { get; set; } = new List() { typeof(EmployeeCountWidget), typeof(InboxWidget), }; protected override Task OnInitializedAsync() { Employee = new Employee { FirstName = "Caca", LastName = "Pipi" }; return base.OnInitializedAsync(); } public void ButtonClick() { Employee.FirstName = "ProutProut"; } public void Test() { } } }