//constructors for the above private clases public ShoppingController() { eCartDbEntities = new eCartDbEntities(); cartModels = new List <cartModel>(); }
//constructor to make use of the private class of the model public ItemController() { eCartDbEntities = new eCartDbEntities(); }