public List <Activity> GetActivities() { try { return(activiteit_db.GetAllActivities()); } catch (Exception) { List <Activity> fakeactivitylist = new List <Activity>(); Activity fakeactivity = new Activity(1, "generic error occured", DateTime.Now, 1, 1); fakeactivitylist.Add(fakeactivity); return(fakeactivitylist); } }