p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: Professional ASP.NET MVC 3 (http://p2p.wrox.com/book-professional-asp-net-mvc-3-649/)
-   -   Error on pg 45-46? (http://p2p.wrox.com/book-professional-asp-net-mvc-3/89323-error-pg-45-46-a.html)

friendl February 9th, 2013 01:14 AM

Error on pg 45-46?
 
Is this correct?

Quote:

public class ShoppingCartViewModel {
public IEnumerable<Product> Products { get; set; }
public decimal CartTotal { get; set; }
public string Message { get; set; }
}

Now you can strongly type a view to this model, using the following @model directive:
@model ShoppingCartSummaryViewModel
Surely it should be public class ShoppingCartSummaryViewModel ?

bfvietnam March 14th, 2016 01:03 AM

public class ShoppingCartViewModel {
public IEnumerable<Product> Products { get; set; }
public decimal CartTotal { get; set; }
public string Message { get; set; }
}

You can edit ?


All times are GMT -4. The time now is 11:19 AM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.