/// <summary> /// Equals function to compare class /// </summary> public virtual bool Exists(String historyKey) { try { DataAccess.HistoryKeys historyKeys = new DataAccess.HistoryKeys(); return(historyKeys.GetById(historyKey) != null); } catch (Exception ex) { Trace.WriteError("{0}", "Exists", CLASSNAME, ex, historyKey); throw; } }
/// <summary> /// Get a HistoryKey by id from the database /// </summary> public virtual Model.HistoryKey GetById(String historyKey) { try { DataAccess.HistoryKeys historyKeys = new DataAccess.HistoryKeys(); Model.HistoryKey result = historyKeys.GetById(historyKey); return(result); } catch (Exception ex) { Trace.WriteError("{0}", "GetById", CLASSNAME, ex, historyKey); throw; } }