示例#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;
     }
 }
示例#2
0
 public Role FromDTO(RoleDTO dto)
 {
     throw new NotImplementedException();
 }