36 lines
783 B
C#
36 lines
783 B
C#
|
|
|
|
using BethanysPieShopHRM.Shared.Domain;
|
|
using Webshop.App.Components.Widgets;
|
|
|
|
namespace Webshop.App.Pages
|
|
{
|
|
public partial class Home
|
|
{
|
|
public Employee Employee { get; set; }
|
|
public List<Type> Widgets { get; set; } = new List<Type>()
|
|
{
|
|
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()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|