I try to make an if function in razor view, by comparing two data from viewbag in ASP NET MVC @ver comes from ViewBag.Temp
<td class="text-center">
@foreach (Dummy ver in ViewBag.dummies)
{
if (@ver.Name == @item.Name)
{
<i class="fas fa-check" id="existed"></i>
}
}
</td>
I already have 2 same name data inside those 2 tables but it wont work
but when i call another data it works properly