Beispiel #1
0
 public List <Profile> GetUsers(int groupId)
 {
     try
     {
         return(dbGroup.GetUsers(groupId));
     }
     catch
     {
         return(new List <Profile>());
     }
 }
Beispiel #2
0
 public List <Profile> GetUsers(int groupId)
 {
     try
     {
         SqlConnection con = new DbConnection().GetConnection();
         try
         {
             return(dbGroup.GetUsers(groupId, null, con));
         }
         finally
         {
             con.Close();
         }
     }
     catch
     {
         return(new List <Profile>());
     }
 }