public void Deleteexam(int id) { try { using (aspccEntities db = new aspccEntities()) { db.DeleteExam(id); } } catch (Exception ex) { com.Loginsert("DalDeleteexam", "Deleteexam", ex.StackTrace, ex.Message); } }