Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugs #1

Open
PowerUzer opened this issue Dec 19, 2018 · 1 comment
Open

Bugs #1

PowerUzer opened this issue Dec 19, 2018 · 1 comment

Comments

@PowerUzer
Copy link

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.

@jchadwick
Copy link
Owner

Will get that fixed ASAP. Thanks for taking the time to let me know and help other folks!
Glad you're enjoying the course!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants