public Activity GetActivityById(int ActivityId)
        {
            try
            {
                return(activiteit_db.GetById(ActivityId));
            }
            catch (Exception)
            {
                Activity a = new Activity(1, "an error occured", DateTime.Now, 1, 1);

                return(a);
            }
        }
Ejemplo n.º 2
0
 public Activity GetById(int id)
 {
     return(activity_dao.GetById(id));
 }