DAL:
public virtual Collection<RolesViewEntity> SelectRolesByParentId(Guid ParentId, Guid GroupId)
{
string sql = @"
SELECT *
FROM
[RolesView]
WHERE
[ParentId]=@ParentId
AND
[AccountGroupId] = @AccountGroupId
AND
[CanRead]=1
AND
[visible]=1
ORDER BY Sequence
";
SqlParameter[] args = new SqlParameter[]
{
Parameter.Menus.ParentId,
Parameter.Roles.AccountGroupId