first commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using BethanysPieShopHRM.Shared.Domain;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace Webshop.App.Components
|
||||
{
|
||||
public partial class EmployeeCard
|
||||
{
|
||||
[Parameter]
|
||||
public Employee Employee { get; set; } = default! ;
|
||||
[Parameter]
|
||||
public EventCallback<Employee> EmployeeQuickViewClicked { get; set; }
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
if (string.IsNullOrEmpty(Employee.LastName))
|
||||
{
|
||||
throw new Exception("Last Name can't be empty");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user