public static bool RemoveCategory(int CategoryID) { bool deleted = false; try { using (LTS.LTSBase access = new LTS.LTSDC()) { access.DeleteCategory(CategoryID); deleted = true; } } catch (Exception ex) { } return(deleted); }