public void RemoveActivity(int id) { try { activity_db.DeleteActivity(id); } catch (Exception ex) { } }
public int DeleteActivity(int ActivityId) { try { return(activiteit_db.DeleteActivity(ActivityId)); } catch (Exception) { int unaltered = 0; return(unaltered); } }
public void DeleteActivity(int id) { // delete an activity by calling a function from the DAL layer dao.DeleteActivity(id); }
public bool DeleteActivity(Activity activity) { activityDao.DeleteActivity(activity); return(true); }