28 lines
678 B
C#
28 lines
678 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
using YY.Admin.Core.Const;
|
|||
|
|
|
|||
|
|
namespace YY.Admin.ViewModels
|
|||
|
|
{
|
|||
|
|
public class NotFoundViewModel : BindableBase
|
|||
|
|
{
|
|||
|
|
private readonly IRegionManager _regionManager;
|
|||
|
|
|
|||
|
|
public NotFoundViewModel(IRegionManager regionManager)
|
|||
|
|
{
|
|||
|
|
_regionManager = regionManager;
|
|||
|
|
GoHomeCommand = new DelegateCommand(GoHome);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public DelegateCommand GoHomeCommand { get; }
|
|||
|
|
|
|||
|
|
private void GoHome()
|
|||
|
|
{
|
|||
|
|
_regionManager.RequestNavigate(CommonConst.ContentRegion, "DashboardView");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|