Exemplo n.º 1
0
 public IndexModel(IKaylaaRepository <Shop> shopRepo, UserManager <IdentityUser> _userManager, SignInManager <IdentityUser> _signInManager, RoleManager <IdentityRole> roleManager)
 {
     this.shopRepo    = shopRepo;
     userManager      = _userManager;
     signInManager    = _signInManager;
     this.roleManager = roleManager;
 }
Exemplo n.º 2
0
 public SalesModel(IKaylaaRepository <Product> productRepo, IShopRepository shopspecificRepo, IKaylaaRepository <Shop> shopRepo, IProductRepo prodspecificRepo, IHttpContextAccessor httpContextAccessor)
 {
     this.productRepo         = productRepo;
     this.shopspecificRepo    = shopspecificRepo;
     this.shopRepo            = shopRepo;
     this.prodspecificRepo    = prodspecificRepo;
     this.httpContextAccessor = httpContextAccessor;
     allproducts = null;
 }
 public PrintBarcodeModel(IKaylaaRepository <Shop> shopRepo, IShopRepository shopspecificRepo,
                          IKaylaaRepository <Product> repo, IProductRepo prodSpecificRepo, IHttpContextAccessor httpContextAccessor)
 {
     this.shopRepo            = shopRepo;
     this.shopspecificRepo    = shopspecificRepo;
     this.repo                = repo;
     this.prodSpecificRepo    = prodSpecificRepo;
     this.httpContextAccessor = httpContextAccessor;
 }
Exemplo n.º 4
0
 public ViewProductModel(IKaylaaRepository <Product> productRepo, IKaylaaRepository <ProductCategory> catRepo,
                         IKaylaaRepository <ProductBrand> brandRepo, IKaylaaRepository <ProductColor> colorRepo,
                         IKaylaaRepository <ProductCountry> countryRepo)
 {
     this.productRepo = productRepo;
     this.catRepo     = catRepo;
     this.brandRepo   = brandRepo;
     this.colorRepo   = colorRepo;
     this.countryRepo = countryRepo;
 }
 public UserController(IKaylaaRepository <staff> userRepo, SignInManager <IdentityUser> signInManager,
                       IPasswordHasher <IdentityUser> passwordHasher, UserManager <IdentityUser> userManager,
                       IUserRepo usersingleRepo, IHttpContextAccessor httpcontext, IConfiguration config)
 {
     this.userRepo       = userRepo;
     this.signInManager  = signInManager;
     this.passwordHasher = passwordHasher;
     this.userManager    = userManager;
     this.usersingleRepo = usersingleRepo;
     this.httpcontext    = httpcontext;
     this.config         = config;
 }
Exemplo n.º 6
0
 public ShoppingCartModel(IKaylaaRepository <Product> prodRepo, IShoppingCartRepo shopRepo,
                          ICustomerRepo custRepo, UserManager <IdentityUser> _userManager, IUserRepo userRepo,
                          SignInManager <IdentityUser> signInManager, IHttpContextAccessor httpContextAccessor, IProductRepo prodspecificRepo)
 {
     this.productRepo         = prodRepo;
     this.shopRepo            = shopRepo;
     this.custRepo            = custRepo;
     userManager              = _userManager;
     this.userRepo            = userRepo;
     this.signInManager       = signInManager;
     this.httpContextAccessor = httpContextAccessor;
     this.prodspecificRepo    = prodspecificRepo;
 }
        public DeleteUnavailableProducts(IKaylaaRepository <Product> _repo, IOptions <CloudinarySettings> _cloudinaryConfig)
        {
            repo             = _repo;
            cloudinaryConfig = _cloudinaryConfig;

            Account acc = new Account(

                cloudinaryConfig.Value.CloudName,
                cloudinaryConfig.Value.ApiKey,
                cloudinaryConfig.Value.ApiSecret
                );

            cloudinary = new Cloudinary(acc);
        }
Exemplo n.º 8
0
        public dashboardModel(IKaylaaRepository <Product> repo, IOptions <CloudinarySettings> _cloudinaryConfig)
        {
            this.repo        = repo;
            cloudinaryConfig = _cloudinaryConfig;
            Account acc = new Account(

                cloudinaryConfig.Value.CloudName,
                cloudinaryConfig.Value.ApiKey,
                cloudinaryConfig.Value.ApiSecret
                );

            cloudinary = new Cloudinary(acc);

            //this.idelete = idelete;
        }
Exemplo n.º 9
0
 public OrderController(IKaylaaRepository <ShoppingCart> _shopCartRepo, IOrderRepository orderRepo,
                        IKaylaaRepository <Customer> custRepo, IKaylaaRepository <staff> staffRepo,
                        IKaylaaRepository <Product> productRepo,
                        IKaylaaRepository <ShoppingCartItem> soldItemRepo,
                        IShoppingCartRepo shopsinglerepo, IConfiguration configuration)
 {
     this.orderRepo      = orderRepo;
     this.custRepo       = custRepo;
     this.staffRepo      = staffRepo;
     this.productRepo    = productRepo;
     this.soldItemRepo   = soldItemRepo;
     this.shopsinglerepo = shopsinglerepo;
     this.configuration  = configuration;
     shopCartRepo        = _shopCartRepo;
 }
        // [BindProperty]
        // public int prodcolor { get; set; }
        // [BindProperty]
        // public int prodcategory { get; set; }
        // [BindProperty]
        // public int prodcountry { get; set; }
        // [BindProperty]
        // public int prodbrand { get; set; }

        // [BindProperty]
        // public int prodshop { get; set; }

        // [BindProperty]
        // public string ProductCode { get; set; }

        // public Shop shop;
        // public int totalProduct;
        // public IQueryable<Product> allproducts;
        // public PaginatedList<Product> ProductList { get; set; }



        public InventoryModel(IKaylaaRepository <Shop> shopRepo)
        {
            //this.repo = repo;
            //this.cloudinaryConfig = _cloudinaryConfig;
            //this.prodRepo = prodRepo;
            //this.colorsRepo = _colorsRepo;
            //this.categoryRepo = _categoryRepo;
            //this.brandRepo = _brandRepo;
            //this.countryRepo = _countryrepo;
            this.shopRepo = shopRepo;

            //this.httpContextAccessor = httpContextAccessor;

            //Account acc = new Account(

            //    cloudinaryConfig.Value.CloudName,
            //    cloudinaryConfig.Value.ApiKey,
            //    cloudinaryConfig.Value.ApiSecret
            //    );

            //cloudinary = new Cloudinary(acc);
        }
Exemplo n.º 11
0
 public ExpensesController(IKaylaaRepository <Expenses> _repo, IExpensesRepo expenseRepo)
 {
     this.repo        = _repo;
     this.expenseRepo = expenseRepo;
 }
Exemplo n.º 12
0
 public BrandController(IKaylaaRepository <ProductBrand> _repo)
 {
     this.repo = _repo;
 }
 public CustomerController(IKaylaaRepository <Customer> _repo)
 {
     this.repo = _repo;
 }
Exemplo n.º 14
0
        //public int shopId;

        public CustomerModel(IKaylaaRepository <Shop> shopRepo, IHttpContextAccessor httpContextAccessor)
        {
            this.shopRepo            = shopRepo;
            this.httpContextAccessor = httpContextAccessor;
        }
 public SoldProductsModel(IKaylaaRepository <Shop> shopRepo)
 {
     this.shopRepo = shopRepo;
 }
 public AccountingModel(IAccountingRepo accountRepo, IKaylaaRepository <Shop> shopRepo)
 {
     this.accountRepo = accountRepo;
     this.shopRepo    = shopRepo;
 }
 public InventoryController(IKaylaaRepository <Product> _repo)
 {
     this.repo = _repo;
 }
Exemplo n.º 18
0
 public ProductRepo(KaylaaDataContext _context, IKaylaaRepository <Product> genericRepo)
 {
     this.context     = _context;
     this.genericRepo = genericRepo;
 }
 public CategoryController(IKaylaaRepository <ProductCategory> _repo)
 {
     this.repo = _repo;
 }
Exemplo n.º 20
0
 public ColorController(IKaylaaRepository <ProductColor> _repo)
 {
     this.repo = _repo;
 }
Exemplo n.º 21
0
 public ShopController(IKaylaaRepository <Shop> _repo, IProductRepo prodRepo)
 {
     this.repo     = _repo;
     this.prodRepo = prodRepo;
 }
Exemplo n.º 22
0
 public OrdersModel(IKaylaaRepository <Shop> shopRepo)
 {
     this.shopRepo = shopRepo;
 }