From 09735e6103ec19d1dab05888e890e450c594c36f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 12 May 2021 14:36:17 +0300 Subject: Improved the way in which database objects are created on startup --- ExamTemplate/Common/RoleConst.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'ExamTemplate/Common') diff --git a/ExamTemplate/Common/RoleConst.cs b/ExamTemplate/Common/RoleConst.cs index 3f0dfb7..7d72fea 100644 --- a/ExamTemplate/Common/RoleConst.cs +++ b/ExamTemplate/Common/RoleConst.cs @@ -1,8 +1,17 @@ +using System.Collections.Generic; + namespace ExamTemplate.Common { public static class RoleConst { - public static string User = "User"; - public static string Admin = "Administrator"; + public const string User = "User"; + public const string Admin = "Administrator"; + + public static List GetAllNames() + { + return new List() { + User, Admin + }; + } } } -- cgit v1.2.3