public TablesController(ITablesService tableService, ICommonService iCommonService, IDropDownService idropDownService, IStringLocalizer <RocketPOSResources> sharedLocalizer, LocService locService)
 {
     _iTablesService   = tableService;
     _iDropDownService = idropDownService;
     _iCommonService   = iCommonService;
     _sharedLocalizer  = sharedLocalizer;
     _locService       = locService;
 }
 public TableController(UserManager <GearUser> userManager, RoleManager <GearRole> roleManager, ApplicationDbContext applicationDbContext, EntitiesDbContext context, INotify <GearRole> notify, IConfiguration configuration, IEntityService entityService, ITablesService tablesService, IOrganizationService <Tenant> organizationService) : base(userManager, roleManager, applicationDbContext, context, notify)
 {
     _entityService       = entityService;
     _tablesService       = tablesService;
     _organizationService = organizationService;
     var(_, connection)   = DbUtil.GetConnectionString(configuration);
     ConnectionString     = connection;
     Context.Validate();
 }
Example #3
0
 public EntityService(EntitiesDbContext context, IMemoryCache memoryCache, IUserManager <GearUser> userManager, ITablesService tablesService, IConfiguration configuration, ILogger <EntityService> logger)
 {
     _context       = context;
     _memoryCache   = memoryCache;
     _userManager   = userManager;
     _tablesService = tablesService;
     _configuration = configuration;
     _logger        = logger;
 }
 public TablesController(ITablesService tablesService,
                         UserManager <RestaurantUser> userManager,
                         IOrdersService ordersService,
                         IProductsService productsService)
 {
     this._tablesService   = tablesService;
     this._userManager     = userManager;
     this._ordersService   = ordersService;
     this._productsService = productsService;
 }
Example #5
0
 public TableController(IEntityContext context, IConfiguration configuration, IEntityService entityService, ITablesService tablesService, IOrganizationService <Tenant> organizationService, IUserManager <GearUser> userManager)
 {
     _entityService       = entityService;
     _tablesService       = tablesService;
     _organizationService = organizationService;
     _userManager         = userManager;
     var(_, connection)   = DbUtil.GetConnectionString(configuration);
     ConnectionString     = connection;
     _context             = context;
     _context.ValidateNullAbstractionContext();
 }
Example #6
0
        public BookingsController(IAuthenticationProvider authProvider,
                                  IPlaceService placeService, IBookingService bookingService,
                                  IViewModelFactory factory, IConsumableService consumableService,
                                  IBookedTablesService bookedTablesService, ITablesService tablesService)
        {
            if (authProvider == null)
            {
                throw new ArgumentNullException(nameof(authProvider));
            }

            if (placeService == null)
            {
                throw new ArgumentNullException(nameof(placeService));
            }

            if (bookingService == null)
            {
                throw new ArgumentNullException(nameof(bookingService));
            }

            if (factory == null)
            {
                throw new ArgumentNullException(nameof(factory));
            }

            if (consumableService == null)
            {
                throw new ArgumentNullException(nameof(consumableService));
            }

            if (bookedTablesService == null)
            {
                throw new ArgumentNullException(nameof(bookedTablesService));
            }

            if (tablesService == null)
            {
                throw new ArgumentNullException(nameof(tablesService));
            }

            this.authProvider        = authProvider;
            this.placeService        = placeService;
            this.bookingService      = bookingService;
            this.factory             = factory;
            this.consumableService   = consumableService;
            this.bookedTablesService = bookedTablesService;
            this.tablesService       = tablesService;
        }
Example #7
0
        public PlacesController(IAuthenticationProvider authProvider, IViewModelFactory factory,
                                IPlaceService placeService, IAddressService addressService, ITablesService tablesService,
                                IReviewsService reviewsService)
        {
            if (factory == null)
            {
                throw new ArgumentNullException(nameof(factory));
            }

            if (authProvider == null)
            {
                throw new ArgumentNullException(nameof(authProvider));
            }

            if (placeService == null)
            {
                throw new ArgumentNullException(nameof(placeService));
            }

            if (addressService == null)
            {
                throw new ArgumentNullException(nameof(addressService));
            }

            if (tablesService == null)
            {
                throw new ArgumentNullException(nameof(tablesService));
            }

            if (reviewsService == null)
            {
                throw new ArgumentNullException(nameof(reviewsService));
            }

            this.viewModelFactory = factory;
            this.authProvider     = authProvider;
            this.placeService     = placeService;
            this.addressService   = addressService;
            this.tablesService    = tablesService;
            this.reviewsService   = reviewsService;
        }
Example #8
0
 public TablesController(ITablesService tables, UserManager <User> users)
 {
     this.tables = tables;
     this.users  = users;
 }
 public TablesController(ITablesService tableService)
 {
     this._tableService = tableService;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context"></param>
 /// <param name="tablesService"></param>
 public EntitySynchronizer(EntitiesDbContext context, ITablesService tablesService)
 {
     _context          = context;
     _tablesService    = tablesService;
     _connectionString = _context.Database.GetDbConnection().ConnectionString;
 }
Example #11
0
 public DataController(IAppsService apps, ITablesService tables)
 {
     this.apps = apps;
     this.tables = tables;
 }
Example #12
0
 public ProductsController(IProductsService productsService, ICategoriesService categoriesService, ITablesService tablesService)
 {
     this._productsService   = productsService;
     this._categoriesService = categoriesService;
     this._tablesService     = tablesService;
 }
Example #13
0
 public TablesController(ITablesService tablesService, IMapper mapper)
 {
     _tablesService = tablesService;
     _mapper        = mapper;
 }