Add project files.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using TheXamlGuy.Framework.Core;
|
||||
|
||||
namespace Builder.LifeCycles;
|
||||
|
||||
public class AddPageHandler : IMediatorHandler<AddPage>
|
||||
{
|
||||
private readonly IProjectContext context;
|
||||
|
||||
public AddPageHandler(IProjectContext context)
|
||||
{
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
public void Handle(AddPage request)
|
||||
{
|
||||
context.Pages.Add(new Page(request.Name));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user