示例#1
0
        public List <Activity> GetDayActivity(string day)
        {
            try
            {
                List <Activity> activities = activity_db.DB_Get_Day_Activity(day);
                return(activities);
            }
            catch (Exception)
            {
                // something went wrong connecting to the database, so we will add a fake student to the list to make sure the rest of the application continues working!
                List <Activity> activities = new List <Activity>();

                return(activities);
                //throw new Exception("Someren couldn't connect to the database");
            }
        }