public IActionResult Index(){
return View(_context.Announcements.Include(x => x.Automobile).Include(x=>x.Location));
}
And, I want to show Location info on the view. However, on the view data of location can not be show. On the view, location data shows Turbo.Models.Location.
@foreach(var announce in Model)
{
<p>@announce.Location</p>
}
I wrote this code on the view.
How can i solve this problem?