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