/// <summary> /// Purpose: Grabs category information based on ID /// Accepts: Int /// Returns: Nothing /// </summary> public void GetCategoryByID(int id) { try { CategoryData data = new CategoryData(); Hashtable hsh = new Hashtable(); hsh = data.GetCategoryByID(id); CategoryID = id; Name = hsh["name"]; Description = hsh["description"]; ParentCategoryID = Convert.ToInt32(hsh["parentcategoryid"]); Created = hsh["created"]; Modified = hsh["modified"]; IsActive = hsh["isactive"]; } catch (Exception ex) { ErrorRoutine(ex, "Category", "GetCategoryByID"); } }