diff --git a/src/EventHub.Web/Pages/Events/Detail.cshtml.cs b/src/EventHub.Web/Pages/Events/Detail.cshtml.cs index 5a3e021..807babb 100644 --- a/src/EventHub.Web/Pages/Events/Detail.cshtml.cs +++ b/src/EventHub.Web/Pages/Events/Detail.cshtml.cs @@ -1,12 +1,11 @@ using System.Threading.Tasks; using EventHub.Events; using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.AspNetCore.Routing; namespace EventHub.Web.Pages.Events { - public class DetailPageModel : PageModel + public class DetailPageModel : EventHubPageModel { [BindProperty(SupportsGet = true)] public string Url { get; set; } diff --git a/src/EventHub.Web/Pages/Events/Index.cshtml.cs b/src/EventHub.Web/Pages/Events/Index.cshtml.cs index 5c6adc3..8692fce 100644 --- a/src/EventHub.Web/Pages/Events/Index.cshtml.cs +++ b/src/EventHub.Web/Pages/Events/Index.cshtml.cs @@ -1,10 +1,9 @@ using System; using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.RazorPages; namespace EventHub.Web.Pages.Events { - public class IndexModel : PageModel + public class IndexModel : EventHubPageModel { [BindProperty(SupportsGet = true)] public Guid? OrganizationId { get; set; } diff --git a/src/EventHub.Web/Pages/Help.cshtml.cs b/src/EventHub.Web/Pages/Help.cshtml.cs index 8251505..94144ec 100644 --- a/src/EventHub.Web/Pages/Help.cshtml.cs +++ b/src/EventHub.Web/Pages/Help.cshtml.cs @@ -1,8 +1,6 @@ -using Microsoft.AspNetCore.Mvc.RazorPages; - namespace EventHub.Web.Pages { - public class Help : PageModel + public class Help : EventHubPageModel { public void OnGet() { diff --git a/src/EventHub.Web/Pages/PrivacyPolicy.cshtml.cs b/src/EventHub.Web/Pages/PrivacyPolicy.cshtml.cs index e25977c..df4766c 100644 --- a/src/EventHub.Web/Pages/PrivacyPolicy.cshtml.cs +++ b/src/EventHub.Web/Pages/PrivacyPolicy.cshtml.cs @@ -1,8 +1,6 @@ -using Microsoft.AspNetCore.Mvc.RazorPages; - namespace EventHub.Web.Pages { - public class PrivacyPolicy : PageModel + public class PrivacyPolicy : EventHubPageModel { public static string LastUpdateDate { get; set; } = "February 23, 2020"; // ToDo: Change LastUpdateDate diff --git a/src/EventHub.Web/Pages/TermsService.cshtml.cs b/src/EventHub.Web/Pages/TermsService.cshtml.cs index 88d2c7b..4c771da 100644 --- a/src/EventHub.Web/Pages/TermsService.cshtml.cs +++ b/src/EventHub.Web/Pages/TermsService.cshtml.cs @@ -1,8 +1,6 @@ -using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; - namespace EventHub.Web.Pages { - public class TermsService : AbpPageModel + public class TermsService : EventHubPageModel { public void OnGet() {