public static OperatorQuote GetOperatorQuote(Int64 id) { try { OperatorQuote oq = NHibernateHelper.GetCurrentSession().Load <OperatorQuote>(id); return(oq); } catch (Exception ex) { throw new AdminException("Operator Quote not found."); } }
public static OperatorQuote MakePersistent(OperatorQuote oq) { NHibernateHelper.GetCurrentSession().SaveOrUpdate(oq); return(oq); }