public Schedule GetSchedule(int activiteitId) { try { Schedule schedule = activity_db.Db_Get_ScheduleById(activiteitId); return(schedule); } catch (Exception) { throw new Exception("Someren (schedules) couldn't connect to the database"); } }