public Activity GetActivityByName(string activiteitNaam) { try { Activity activity = activity_db.Db_Get_ActivityByName(activiteitNaam); return(activity); } catch (Exception) { throw new Exception("Someren (activities) couldn't connect to the database"); } }