arrow_back Not displaying objects of a certain url address?

1 vote

Objects with the name new building and commercial are not displayed

1 comment

Why aren't there any project files in the rep?

1 Answer

0 votes
I answered in a similar question to yours. I described everything there. Look for solutions to such easy questions yourself, the literature is full. Otherwise how will you learn to program, on the forum?


Roman Thank you)
Alexxxey_enot , because you don't have CategoryId defined in your model, Id is defined
You write superfluous code that essentially does the same thing, then why do you need it if you can make it simpler
var realty = _allRealty.Realty.Where(i => i.Category == c).OrderBy(i =>; 

var realtyobj = new RealtyListViewModel
allRealty = realty,
CategoryId = id

ViewBag.Title = "Недвижимость";

return View(realtyobj);
Roman Yes, it's just time is pressing a lot to solve this problem urgently. I almost found a solution to this problem, but I can't implement it yet 6056fbec54fdc505611483.png