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