Jul 22, 2018 04:52 PM|TGirgenti|LINK
I am having a problem with my application in the view of the Products.cshtml.
When I use the Visual Studio debugger and stop the program on the "var result =" of your Linq query, it shows
multipleProductModel.MProductsApi with a count of 10 and
multipleProductModel.MProducts with a count of 1350 and when I stop it on the
return View("~/Views/API/Products.cshtml", result.ToList());, it shows result with a count of 15 and the Product List displays 15 products. There are five duplicates in the display.
I tried to dissect the Linq query to see if I can find anything unusual and cannot see what would be causing the duplicates to appear.
I checked the multipleProductModel.MProducts data and it does not contain duplicates.
I also put a stop on the select new ProductViewModel part of the Linq query and it did stop on it 15 times.
Can you offer any ideas of how to debug this problem?