예제 #1
0
 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);
     }
 }
예제 #3
0
 public void DeleteActivity(int id)
 {
     // delete an activity by calling a function from the DAL layer
     dao.DeleteActivity(id);
 }
예제 #4
0
 public bool DeleteActivity(Activity activity)
 {
     activityDao.DeleteActivity(activity);
     return(true);
 }