using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using WebApp.Helpers; namespace WebApp.Pages.User { [Authorize(Roles = Roles.Admin + Roles.Worker)] public class SettingsModel : PageModel { public void OnGet() { } } }