From 0903da0dba00fd0e87e4dba7ae685b5efab247b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Thu, 24 May 2018 08:06:21 +0300 Subject: [PATCH] Added AbpPage --- src/Volo.Abp.AspNetCore.Mvc.UI/RazorPages/AbpPage.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/Volo.Abp.AspNetCore.Mvc.UI/RazorPages/AbpPage.cs diff --git a/src/Volo.Abp.AspNetCore.Mvc.UI/RazorPages/AbpPage.cs b/src/Volo.Abp.AspNetCore.Mvc.UI/RazorPages/AbpPage.cs new file mode 100644 index 0000000000..9038599759 --- /dev/null +++ b/src/Volo.Abp.AspNetCore.Mvc.UI/RazorPages/AbpPage.cs @@ -0,0 +1,12 @@ +using Microsoft.AspNetCore.Mvc.Razor.Internal; +using Microsoft.AspNetCore.Mvc.RazorPages; +using Volo.Abp.Users; + +namespace Volo.Abp.AspNetCore.Mvc.RazorPages +{ + public abstract class AbpPage : Page + { + [RazorInject] + protected ICurrentUser CurrentUser { get; set; } + } +}