public Mapping() { Project2Entities entities = new Project2Entities(); ShoppingCartRepo = new ShoppingCartRepo(entities); UserRepo = new UserRepo(entities); CustomPizzaRepo = new CustomPizzaRepo(entities); StandardProductRepo = new StandardProductRepo(entities); CustIngredientsRepo = new CustIngredientsRepo(entities); OrderRepo = new OrderRepo(entities); OrderDetailsRepo = new OrderDetailRepo(entities); }
public decimal Ini(IStandardProductRepo standardProductRepo) { Price = standardProductRepo.RetrieveById(Id).Price; return(Price); }