示例#1
0
 public List <ActivityForeignGroup> GetActivityForiegnGroup()
 {
     try
     {
         // get the list with activities by calling a function from the DAL layer
         List <ActivityForeignGroup> s = dao.Db_Get_All_ActivityForeignGroup();
         return(s);
     }
     catch (Exception)
     {
         throw new Exception("Something went wrong!"); // or throw new exception
     }
 }