Good I need to show a count I am working with a listing and lambda as follows:
@foreach (var item in Denuncias)
{
var DenunciaPersona = dbDP.TraerTodo().Where(x => x.NODENUNCIA == item.NODENUNCIA);
var hecho = dbhe.TraerHechos((long)item.AÑO, (long)item.NODENUNCIA).Where(x => x.NODENUNCIA == item.NODENUNCIA).FirstOrDefault();
var citaciones = dbci.TraerCitaciones((long)item.AÑO, (long)item.NODENUNCIA);
var clasedenuncia = dbcla.TraerTodo().Where(x => x.CLASE_DENUNCIA == item.CLASE_DENUNCIA);
DateTime? ultimaCitacion = null;
<tr>
<td nowrap>
@foreach (var d in DenunciaPersona)
{
int prueba = DenunciaPersona.Count(den => den.TIPO_PERSONA == 1);
if (d.TIPO_PERSONA == 1)
{
<span> cantidad de victimas:@prueba</span>
}
}
<br />
Clase Denuncia: @denuncia
</td>
</tr>
If you are telling me this, but show it to me in the following manner: VICTIMS QUANTITY: 2 VICTIMS QUANTITY: 2 And I want it just like this: VICTIMS QUANTITY 2