예제 #1
0
 public static void AddPermission(Account account, Permission permission)
 {
     AccountPermission ap = new AccountPermission();
     ap.AccountID = account.AccountID;
     ap.PermissionID = permission.PermissionID;
     ap.Save();
 }
예제 #2
0
 public void AddPermission(Permission permission)
 {
     _permissions.Add(permission);
 }