public void EditStandartSize(IStandartSize aStandartSize)
 {
     using (var session = NHibernateHelper.OpenSession()) {
         using (var transaction = session.BeginTransaction()) {
             var entity = session.Get<StandartSizeEntity>(aStandartSize.GetId());
             entity.Diameter = aStandartSize.GetDiameter();
             session.Update(entity);
             transaction.Commit();
         }
     }
 }
 public void EditStandartSize(IStandartSize aStandartSize)
 {
     using (var session = NHibernateHelper.OpenSession()) {
         using (var transaction = session.BeginTransaction()) {
             var entity = session.Get<StandartSizeEntity>(aStandartSize.GetId());
             entity.Height = aStandartSize.GetHeight();
             entity.Width = aStandartSize.GetWidth();
             entity.Length = aStandartSize.GetLength();
             session.Update(entity);
             transaction.Commit();
         }
     }
 }