Example #1
0
 public ProjectController(
     IProjectRepository projectRepository,
     ICategoryRepository categoryRepository,
     IExtendRepository extendRepository,
     IOrderRepository orderRepository,
     ITableService tableService,
     IAreaRepository areaRepository,
     IExtendItemRepository extendItemRepository,
     IRestaurantCategoryRepository restaurantCategoryRepository,
     IPrinterRepository printerRepository,
     IOrderDetailCauseRepository orderDetailCauseRepository,
     ICustomConfigRepository customConfigRepository)
 {
     _projectRepository            = projectRepository;
     _categoryRepository           = categoryRepository;
     _extendRepository             = extendRepository;
     _orderRepository              = orderRepository;
     _tableServices                = tableService;
     _areaRepository               = areaRepository;
     _extendItemRepository         = extendItemRepository;
     _restaurantCategoryRepository = restaurantCategoryRepository;
     _printerRepository            = printerRepository;
     _orderDetailCauseRepository   = orderDetailCauseRepository;
     _customConfigRepository       = customConfigRepository;
 }
Example #2
0
        public RestaurantService(IRestaurantRepository restaurantRepository,
                                 IRestaurantCategoryRepository restaurantCategoryRepository)
            : base(restaurantRepository)
        {
            Condition.WithExceptionOnFailure <InvalidParameterException>()
            .Requires(restaurantRepository, "restaurantRepository").IsNotNull();

            Condition.WithExceptionOnFailure <InvalidParameterException>()
            .Requires(restaurantCategoryRepository, "restaurantCategoryRepository").IsNotNull();

            _restaurantRepository         = restaurantRepository;
            _restaurantCategoryRepository = restaurantCategoryRepository;
        }
Example #3
0
 public ApiPluginController(IRestaurantRepository restaurantRepository,
                            IRestaurantService restaurantService, IMarketRepository marketRepository,
                            ICategoryRepository categoryRepository, IRestaurantCategoryRepository restaurantCategoryRepository,
                            IProjectRepository projectRepository, IOrderRepository orderRepository,
                            ITableService tableHandlerSers)
 {
     _restaurantRepository         = restaurantRepository;
     _restaurantService            = restaurantService;
     _marketRepository             = marketRepository;
     _categoryRepository           = categoryRepository;
     _restaurantCategoryRepository = restaurantCategoryRepository;
     _projectRepository            = projectRepository;
     _orderRepository  = orderRepository;
     _tableHandlerSers = tableHandlerSers;
 }
Example #4
0
 public WeiXinController(IRestaurantRepository restaurantRepository,
                         IRestaurantService restaurantService, IMarketRepository marketRepository,
                         ICategoryRepository categoryRepository, IRestaurantCategoryRepository restaurantCategoryRepository,
                         IProjectRepository projectRepository, IOrderRepository orderRepository,
                         ITableService tableHandlerSers, IExtendItemRepository extendItemRepository,
                         IPackageRepository packageRepository, ICheckOutService checkOutService, IPayMethodRepository payMethodRepository)
 {
     _restaurantRepository         = restaurantRepository;
     _restaurantService            = restaurantService;
     _marketRepository             = marketRepository;
     _categoryRepository           = categoryRepository;
     _restaurantCategoryRepository = restaurantCategoryRepository;
     _projectRepository            = projectRepository;
     _orderRepository      = orderRepository;
     _tableHandlerSers     = tableHandlerSers;
     _extendItemRepository = extendItemRepository;
     _packageRepository    = packageRepository;
     _checkOutService      = checkOutService;
     _payMethodRepository  = payMethodRepository;
 }
Example #5
0
        private readonly ICustomerRepository _oldCustRepository; //(旧系统)Lxdm 客户表

        public FlatController(IRestaurantRepository restaurantRepository,
                              IRestaurantService restaurantService, IMarketRepository marketRepository,
                              ICategoryRepository categoryRepository, IRestaurantCategoryRepository restaurantCategoryRepository,
                              IProjectRepository projectRepository, IOrderRepository orderRepository,
                              ITableService tableHandlerSers, IExtendItemRepository extendItemRepository,
                              IPackageRepository packageRepository, ICheckOutService checkOutService, IPayMethodRepository payMethodRepository,
                              IAreaRepository areaRepository, IUserService userService, ICustomerRepository customerRepository)
        {
            _restaurantRepository         = restaurantRepository;
            _restaurantService            = restaurantService;
            _marketRepository             = marketRepository;
            _categoryRepository           = categoryRepository;
            _restaurantCategoryRepository = restaurantCategoryRepository;
            _projectRepository            = projectRepository;
            _orderRepository      = orderRepository;
            _tableHandlerSers     = tableHandlerSers;
            _extendItemRepository = extendItemRepository;
            _packageRepository    = packageRepository;
            _checkOutService      = checkOutService;
            _payMethodRepository  = payMethodRepository;
            _areaRepository       = areaRepository;
            _userService          = userService;
            _oldCustRepository    = customerRepository;
        }
Example #6
0
 public RestaurantCategoryController(IRestaurantCategoryRepository restaurantCategoryRepository, ICategoryRepository categoryRepository)
 {
     _categoryRepository           = categoryRepository;
     _restaurantCategoryRepository = restaurantCategoryRepository;
 }
Example #7
0
 public RestaurantCategoryService(IRestaurantCategoryRepository restaurantCategoryRepository)
     : base(restaurantCategoryRepository)
 {
     this.restaurantCategoryRepository = restaurantCategoryRepository;
 }