Ejemplo n.º 1
0
 public CartController(IProductRepository productRepo, IBizInfoRepository bizInfoRepo,
                       IBizCuisineRepository bizCuisineRepo, ICuisineTypeRepository cuisineTypeRepo,
                       IProductToppingRepository productToppingRepo, IProductSizeRepository productSizeRepo,
                       ISideChoiceRepository sideChoiceRepo, IProductDressingRepository productDressingRepo,
                       IDiscountCouponRepository discountCouponRepo, IFreeItemCouponRepository FreeItemCouponRepo,
                       ICrustChoiceRepository crustChoiceRepo, ICheeseAmountRepository cheeseAmountRepo)
 {
     ProductRepository         = productRepo;
     BizInfoRepository         = bizInfoRepo;
     BizCuisineRepository      = bizCuisineRepo;
     CuisineTypeRepository     = cuisineTypeRepo;
     ProductToppingRepository  = productToppingRepo;
     ProductSizeRepository     = productSizeRepo;
     SideChoiceRepository      = sideChoiceRepo;
     ProductDressingRepository = productDressingRepo;
     DiscountCouponRepository  = discountCouponRepo;
     FreeItemCouponRepository  = FreeItemCouponRepo;
     CrustChoiceRepository     = crustChoiceRepo;
     CheeseAmountRepository    = cheeseAmountRepo;
 }
Ejemplo n.º 2
0
 public GroupCheckoutController(IBizInfoRepository bizInfoRepo, IBizCuisineRepository bizCuisineRepo,
                                ICuisineTypeRepository cuisineTypeRepo, ICategoryRepository categoryRepo,
                                IProductRepository productRepo, IProductToppingRepository productToppingRepo,
                                IProductDressingRepository productDressingRepo, IDiscountCouponRepository discountCouponRepo,
                                IFreeItemCouponRepository FreeItemCouponRepo, IUserDetailRepository userDetailRepo,
                                ICreditCardTypeRepository creditCardTypeRepo, IOrderRepository orderRepo,
                                ICreditCardRepository creditCardRepo)
 {
     BizInfoRepository         = bizInfoRepo;
     BizCuisineRepository      = bizCuisineRepo;
     CuisineTypeRepository     = cuisineTypeRepo;
     CategoryRepository        = categoryRepo;
     ProductRepository         = productRepo;
     ProductToppingRepository  = productToppingRepo;
     ProductDressingRepository = productDressingRepo;
     DiscountCouponRepository  = discountCouponRepo;
     FreeItemCouponRepository  = FreeItemCouponRepo;
     UserDetailRepository      = userDetailRepo;
     CreditCardTypeRepository  = creditCardTypeRepo;
     OrderRepository           = orderRepo;
     CreditCardRepository      = creditCardRepo;
     TempData["valid"]         = "";
 }
 public RestaurantsController(IBizInfoRepository bizInfoRepo, IBizCuisineRepository bizCuisineRepo,
                              ICuisineTypeRepository cuisineTypeRepo, ICategoryRepository categoryRepo,
                              IProductRepository productRepo, IProductToppingRepository productToppingRepo,
                              IProductDressingRepository productDressingRepo, IDiscountCouponRepository discountCouponRepo,
                              IFreeItemCouponRepository freeItemCouponRepo, IFavorRestaurantRepository favorRestaurantRepo,
                              IOrderRepository orderRepo, IBizImageRepository bizImageRepo)
 {
     ViewBag.TitleSortParam    = "BizTitle";
     ViewBag.NewestSortParam   = "AddedDate desc";
     ViewBag.SortParam         = "BizTitle";
     BizInfoRepository         = bizInfoRepo;
     BizCuisineRepository      = bizCuisineRepo;
     CuisineTypeRepository     = cuisineTypeRepo;
     CategoryRepository        = categoryRepo;
     ProductRepository         = productRepo;
     ProductToppingRepository  = productToppingRepo;
     ProductDressingRepository = productDressingRepo;
     DiscountCouponRepository  = discountCouponRepo;
     FreeItemCouponRepository  = freeItemCouponRepo;
     FavorRestaurantRepository = favorRestaurantRepo;
     OrderRepository           = orderRepo;
     BizImageRepository        = bizImageRepo;
 }