diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-05-12 14:36:17 +0300 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-05-12 14:36:17 +0300 |
| commit | 09735e6103ec19d1dab05888e890e450c594c36f (patch) | |
| tree | 13a8ac7517642a5cd30981adbd79b04195a90556 /ExamTemplate/Common | |
| parent | fc43ff3c98bad3f0c6df31dddefd192bdab9a77f (diff) | |
| download | it-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.cs | 13 |
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 + }; + } } } |
