// method to update counter of a person public void UpdateCounter(int id, int counter) { var db = new DB(); // updates person on db try { db.UpdateCounterOnDB(id, counter); } catch (System.Exception) { throw; } }