Website Summary Files Commits Branches @commit @diff @stats
path: root / ExamTemplate / Common / ExamTemplate.Common
diff options
context:
space:
mode:
Commitffd59fcdc11b8b57cab30be090d2775d2b6b1ba3 (patch)
Author
 Kamen Mladenov <kamen.d.mladenov@protonmail.com>
2021-05-16 05:17:37 +0000
Committer
 Kamen Mladenov <kamen.d.mladenov@protonmail.com>
2021-05-16 05:17:37 +0000
Files3e82cb2864aec05505509e1afc01c6843f0a64a9 /ExamTemplate/Common/ExamTemplate.Common
it-kariera-exam-template-ffd59fcdc11b8b57cab30be090d2775d2b6b1ba3.tar
it-kariera-exam-template-ffd59fcdc11b8b57cab30be090d2775d2b6b1ba3.tar.gz
it-kariera-exam-template-ffd59fcdc11b8b57cab30be090d2775d2b6b1ba3.zip
Parent2ac139d0854c0f6d1b4cebc1487dd41128f00c60 (diff)
Parent564209043493c77fd51ac096b5a160bb20c46f12 (diff)
Merge branch 'fuckoff' into 'master'
New structure See merge request Syndamia/it-kariera-exam-template!2
diff --git a/ExamTemplate/Common/ExamTemplate.Common/ErrorMessages.cs b/ExamTemplate/Common/ExamTemplate.Common/ErrorMessages.cs
new file mode 100644
index 0000000..fa15b8c
--- /dev/null
+++ b/ExamTemplate/Common/ExamTemplate.Common/ErrorMessages.cs
@@ -0,0 +1,12 @@
+using System;
+
+namespace ExamTemplate.Common
+{
+ public static class ErrorMessages
+ {
+ public static string NullObject(Type t)
+ {
+ return String.Format("{0} cannot be null!", t);
+ }
+ }
+}
diff --git a/ExamTemplate/Common/ExamTemplate.Common/ExamTemplate.Common.csproj b/ExamTemplate/Common/ExamTemplate.Common/ExamTemplate.Common.csproj
new file mode 100644
index 0000000..563e6f9
--- /dev/null
+++ b/ExamTemplate/Common/ExamTemplate.Common/ExamTemplate.Common.csproj
@@ -0,0 +1,7 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+ <PropertyGroup>
+ <TargetFramework>net5.0</TargetFramework>
+ </PropertyGroup>
+
+</Project>
diff --git a/ExamTemplate/Common/ExamTemplate.Common/RoleConst.cs b/ExamTemplate/Common/ExamTemplate.Common/RoleConst.cs
new file mode 100644
index 0000000..7d72fea
--- /dev/null
+++ b/ExamTemplate/Common/ExamTemplate.Common/RoleConst.cs
@@ -0,0 +1,17 @@
+using System.Collections.Generic;
+
+namespace ExamTemplate.Common
+{
+ public static class RoleConst
+ {
+ public const string User = "User";
+ public const string Admin = "Administrator";
+
+ public static List<string> GetAllNames()
+ {
+ return new List<string>() {
+ User, Admin
+ };
+ }
+ }
+}