Пример #1
0
        public void AddPermission(Account account, Permission permission)
        {
            var ap = new AccountPermission {
                                                AccountId = account.AccountId,
                                                Permission = permission
                                            };

            BeginTransaction();
            NHibernateSession.SaveOrUpdate(ap);
        }
Пример #2
0
 public void SavePermission(Permission permission)
 {
     BeginTransaction();
     NHibernateSession.SaveOrUpdate(permission);
 }
Пример #3
0
 public virtual void AddPermission(Permission permission)
 {
     _permissions.Add(permission);
 }
Пример #4
0
 public void DeletePermission(Permission permission)
 {
     BeginTransaction();
     NHibernateSession.Delete(permission);
 }