Esempio n. 1
0
 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;
     }
 }
Esempio n. 2
0
 public Role FromDTO(RoleDTO dto)
 {
     throw new NotImplementedException();
 }