Part 8 - ShoppingcartViewModel view

Sep 25, 2014 at 2:16 PM
Edited Sep 25, 2014 at 2:20 PM
I appear to be getting an Error asking me to explicitly label a key for the model after finishing the controller and trying to create it's view. A key has not been set in the code example...
I have put my model exactly as:
using System.Collections.Generic;
using FlatCapDesign.Models;

namespace FlatCapDesign.ViewModels
    public class ShoppingCartViewModel
        public List<Cart> CartItems { get; set; }
        public decimal CartTotal { get; set; }
What am I doing wrong?