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