mirror of
https://github.com/opelly27/WinStudentGoalTracker.git
synced 2026-05-20 12:17:35 +00:00
latest
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
namespace WinStudentGoalTracker.Models;
|
||||
|
||||
public static class EntityType
|
||||
{
|
||||
public const string SchoolDistrict = "school_district";
|
||||
public const string Program = "program";
|
||||
public const string User = "user";
|
||||
public const string Student = "student";
|
||||
public const string Goal = "goal";
|
||||
public const string ProgressEvent = "progress_event";
|
||||
|
||||
public static string? TryParse(string value) =>
|
||||
All.Contains(value) ? value : null;
|
||||
|
||||
public static readonly IReadOnlyList<string> All =
|
||||
[SchoolDistrict, Program, User, Student, Goal, ProgressEvent];
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace WinStudentGoalTracker.Models;
|
||||
|
||||
public static class PermissionAction
|
||||
{
|
||||
public const string Create = "create";
|
||||
public const string Read = "read";
|
||||
public const string Update = "update";
|
||||
public const string Delete = "delete";
|
||||
|
||||
public static string? TryParse(string value) =>
|
||||
All.Contains(value) ? value : null;
|
||||
|
||||
public static readonly IReadOnlyList<string> All =
|
||||
[Create, Read, Update, Delete];
|
||||
}
|
||||
Reference in New Issue
Block a user