Example #1
0
 public List <Group> GetUsersGroups(int profileId)
 {
     try
     {
         return(dbGroup.GetUsersGroups(profileId));
     }
     catch (Exception)
     {
         return(new List <Group>());
     }
 }
Example #2
0
 public List <Group> GetUsersGroups(int profileId)
 {
     try
     {
         SqlConnection con = new DbConnection().GetConnection();
         try
         {
             return(dbGroup.GetUsersGroups(profileId, null, con));
         }
         finally
         {
             con.Close();
         }
     }
     catch (Exception)
     {
         return(new List <Group>());
     }
 }