public List <Group> GetUsersGroups(int profileId) { try { return(dbGroup.GetUsersGroups(profileId)); } catch (Exception) { return(new List <Group>()); } }
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>()); } }