public doblesobj ConsultaPagosTramites(string AlumnoId) { doblesobj objr = new doblesobj(); try { List <DTOPagoDetallado> lstRes = BLLPagoPortal.ConsultaPagosTramites(int.Parse(AlumnoId)); bool rest; int cout = lstRes.Where(l => l.OtroDescuento.Length > 0).ToList().Count; rest = cout > 0 ? true : false; objr.item1 = lstRes; objr.item2 = rest; return(objr); } catch { return(objr); } }