public StorageResult UpdateOne(RoleDTO role) { try { using (ISession session = NHibernateHelper.OpenSession()) using (ITransaction transaction = session.BeginTransaction()) { session.Update(role); transaction.Commit(); } return StorageResult.Success; } catch (Exception) { return StorageResult.Failed; } }
public Role FromDTO(RoleDTO dto) { throw new NotImplementedException(); }