View Single Post
  #1 (permalink)  
Old February 9th, 2013, 01:14 AM
friendl friendl is offline
Authorized User
Points: 50, Level: 1
Points: 50, Level: 1 Points: 50, Level: 1 Points: 50, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2011
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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 ?