public List <Profile> GetUsers(int groupId) { try { return(dbGroup.GetUsers(groupId)); } catch { return(new List <Profile>()); } }
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>()); } }