public void AddPermission(Account account, Permission permission) { var ap = new AccountPermission { AccountId = account.AccountId, Permission = permission }; BeginTransaction(); NHibernateSession.SaveOrUpdate(ap); }
public void SavePermission(Permission permission) { BeginTransaction(); NHibernateSession.SaveOrUpdate(permission); }
public virtual void AddPermission(Permission permission) { _permissions.Add(permission); }
public void DeletePermission(Permission permission) { BeginTransaction(); NHibernateSession.Delete(permission); }