In ProductsController (bug introduced in Chapter 4, section 2)
var vm = new ProductsListViewModel { Products = **products**.Select(x => new ProductViewModel { MSRP = x.MSRP, Name = x.Name, Price = x.Price, SKU = x.SKU, Rating = ratings.FirstOrDefault(y => x.SKU == y.SKU), }) };
should be
var vm = new ProductListViewModel { Products = **model**.Select(x => new ProductViewModel { MSRP = x.MSRP, Name = x.Name, Price = x.Price, SKU = x.SKU, Rating = ratings.FirstOrDefault(y => x.SKU == y.SKU) }) }
In AllowPartialRenderingAttribute (bug introduced in Chapter 5, Section 1)
if (request == null) return;
should be
if (result== null) return;
Was going through your course and noticed these two errors. Haven't finished it yet but thanks for the excellent course.