My question is the following.
Ineedtodisplay2statusesonapagethatwouldbePrimeiro
andAlterado
,wherethefirstlineofsqlwiththedateof2018-03-0510:24:55.787
receivesstatusPrimeiro
andthesecondlineofsqlwithdate2018-03-0510:30:09.727
receivesstatusAlterado
andthethirdlinereceivesstatusAtivo
butisalreadyworkingasyoucanseeinthecodebelow.
<tdclass="text-center">
@if (item.StatPree == 1)
{
<a class="ui teal label">Ativo</a>
}
else {
if (...)
{
<a class="ui yellow label">Primeiro</a>
}
else
{
<a class="ui orange label">Alterado</a>
}
}
</td>
Variable is public DateTime? DataEdicao { get; set; }