Add MainService for state management and update Index and AuthDialog to utilize it

This commit is contained in:
masoodafar-web
2025-11-20 21:07:05 +03:30
parent 30bac23114
commit 973beb9e2f
5 changed files with 47 additions and 12 deletions

View File

@@ -0,0 +1,13 @@
using Microsoft.AspNetCore.Components;
namespace FrontOffice.Main.Utilities;
public class MainService
{
public event Action OnChangeHandler;
public virtual void OnOnChangeHandler()
{
OnChangeHandler?.Invoke();
}
}