using System.Collections.Generic;
public static void Main()
var respostaProcedure = new List<DB>()
new DB(111342, 1, 1, true, false, false),
new DB(111342, 1, 2, true, true, true),
new DB(111342, 1, 3, true, true, true),
var respostaMapeada = respostaProcedure
.GroupBy(x => new { x.CodUs, x.iA })
LoginPers = x.Select(l => new LoginPer { bC = l.bC, bD = l.bD, bE = l.bE, iB = l.iB }).ToList()
Console.WriteLine(JsonConvert.SerializeObject(respostaProcedure));
public DB(int CodUs, int iA, int iB, bool bC, bool bD, bool bE)
public ICollection<LoginPer> LoginPers { get; set; }