public OutletManagerService()
        {
            OrcusSMEContext context = new OrcusSMEContext(new DbContextOptions <OrcusSMEContext>());

            _outletManagerRepo = new OutletManagerRepo(context);
            _crashLogRepo      = new CrashLogRepo(context);
        }
Beispiel #2
0
        public UserService()
        {
            OrcusSMEContext context = new OrcusSMEContext(new DbContextOptions <OrcusSMEContext>());

            _userRepo     = new UserRepo(context);
            _crashLogRepo = new CrashLogRepo(context);
            _emailIdRepo  = new EmailIdRepo(context);
        }
Beispiel #3
0
        public FileService()
        {
            OrcusSMEContext context = new OrcusSMEContext(new DbContextOptions <OrcusSMEContext>());

            _fileRepo           = new FileRepo(context);
            _crashLogRepo       = new CrashLogRepo(context);
            _productPictureRepo = new ProductPictureRepo(context);
        }
Beispiel #4
0
        public SubscriptionService(ISubscriptionLogRepo subscriptionLogRepo, IServiceRepo subscriptionRepo)
        {
            OrcusSMEContext context = new OrcusSMEContext(new DbContextOptions <OrcusSMEContext>());

            _subscriptionLogRepo = subscriptionLogRepo;
            _subscriptionRepo    = subscriptionRepo;
            _crashLogRepo        = new CrashLogRepo(context);
        }
        public CategoryService()
        {
            OrcusSMEContext context = new OrcusSMEContext(new DbContextOptions <OrcusSMEContext>());

            _categoryRepo = new CategoryRepo(context);
            _crashLogRepo = new CrashLogRepo(context);
            //_productRepo = new IProductRepo(context);
        }
Beispiel #6
0
        //private readonly IProductPictureRepo _productPicRepo;

        public ProductService()
        {
            OrcusSMEContext context = new OrcusSMEContext(new DbContextOptions <OrcusSMEContext>());

            _productUnitTypeRepo = new ProductUnitTypeRepo(context);
            _crashLogRepo        = new CrashLogRepo(context);
            _inventoryLogRepo    = new InventoryLogRepo(context);
            _productRepo         = new ProductRepo(context);
            _outletManagerRepo   = new OutletManagerRepo(context);
            _categoryRepo        = new CategoryRepo(context);
            //_productPicRepo = new ProductPictureRepo(context);
        }