-
Notifications
You must be signed in to change notification settings - Fork 1
/
AccountManagementOperations.cs
29 lines (26 loc) · 1.28 KB
/
AccountManagementOperations.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// ====================================================
// More Templates: https://www.ebenmonney.com/templates
// Email: [email protected]
// ====================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Erpmi.Security
{
/// <summary>
/// Operation Policy to allow adding, viewing, updating and deleting general or specific user records.
/// </summary>
public static class AccountManagementOperations
{
public const string CreateOperationName = "Create";
public const string ReadOperationName = "Read";
public const string UpdateOperationName = "Update";
public const string DeleteOperationName = "Delete";
public static UserAccountAuthorizationRequirement Create = new UserAccountAuthorizationRequirement(CreateOperationName);
public static UserAccountAuthorizationRequirement Read = new UserAccountAuthorizationRequirement(ReadOperationName);
public static UserAccountAuthorizationRequirement Update = new UserAccountAuthorizationRequirement(UpdateOperationName);
public static UserAccountAuthorizationRequirement Delete = new UserAccountAuthorizationRequirement(DeleteOperationName);
}
}