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 ?