So it doesn't seem so complex, I'll give you a simple example of what I want:
string statusString = status 2;
return View(myData.where(x => x.status == statusString)
in sight it will be something of this kind:
@foreach (var item in Model)
{
@item.myData.status
}
The code above will display everything that is in status2 in myData, right
but it turns out I need values that are in another position or outside of the preview model.
is it possible to continue to view everything equal to status2 and force a value outside the model type =status1 to be displayed?
what I tried
@item.myData.Where(x => x.status == "status1" )
Thanks,