aboutsummaryrefslogtreecommitdiff
path: root/ExamTemplate/Common
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-05-12 14:36:17 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-05-12 14:36:17 +0300
commit09735e6103ec19d1dab05888e890e450c594c36f (patch)
tree13a8ac7517642a5cd30981adbd79b04195a90556 /ExamTemplate/Common
parentfc43ff3c98bad3f0c6df31dddefd192bdab9a77f (diff)
downloadit-kariera-exam-template-09735e6103ec19d1dab05888e890e450c594c36f.tar
it-kariera-exam-template-09735e6103ec19d1dab05888e890e450c594c36f.tar.gz
it-kariera-exam-template-09735e6103ec19d1dab05888e890e450c594c36f.zip
Improved the way in which database objects are created on startup
Diffstat (limited to 'ExamTemplate/Common')
-rw-r--r--ExamTemplate/Common/RoleConst.cs13
1 files changed, 11 insertions, 2 deletions
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<string> GetAllNames()
+ {
+ return new List<string>() {
+ User, Admin
+ };
+ }
}
}