Ejemplo n.º 1
0
        public CartController()
        {
            var productRepo = new ProductRepository();

            _products = new ProductManger(productRepo);
            _cart     = new CartService();
        }
Ejemplo n.º 2
0
 public CartController(ProductManger productMangerPram, ShippingDetailsManger shippingDetailsMangerPram, OperationTypeManger operationTypeMangerPram, PaymentMethodManger PaymentMethodMangerPram, BillManger billMangerPram, OperationManger operationMangerPram)
 {
     this._OperationTypeManger   = operationTypeMangerPram;
     this._productManger         = productMangerPram;
     this._shippingDetailsManger = shippingDetailsMangerPram;
     this._PaymentMethodManger   = PaymentMethodMangerPram;
     this._billmanger            = billMangerPram;
     this._Operationmanger       = operationMangerPram;
 }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            ProductManger productManager = new ProductManger(new EfProductDal());

            foreach (var product in productManager.GetAllByUnitPrice(40, 100))
            {
                Console.WriteLine(product.ProductName);
            }
        }
Ejemplo n.º 4
0
        static void Main(string[] args)
        {
            ProductManger productManger = new ProductManger(new EfProductDal());

            foreach (var product in productManger.GetAll())
            {
                Console.WriteLine(product.ProductName);
            }

            Console.WriteLine("--Kategoriye göre seçim--");

            foreach (var product in productManger.GetAllByCategoryId(2))
            {
                Console.WriteLine(product.ProductName);
            }

            Console.WriteLine("--Ücrete göre seçim--");
            foreach (var product in productManger.GetByUnitPrice(20, 21))
            {
                Console.WriteLine(product.ProductName);
            }
        }
Ejemplo n.º 5
0
        public HomeController()
        {
            var productRepo = new ProductRepository();

            _products = new ProductManger(productRepo);
        }
 public CategoriesController(CategoryManger CategoryPram, ProductManger ProductMangerPram)
 {
     this._ProductManger  = ProductMangerPram;
     this._CategoryManger = CategoryPram;
 }
Ejemplo n.º 7
0
 public ProductController(ProductManger productMangerPram, CategoryManger categoryMangerPram, SupplierManger supplierMangerPram)
 {
     this._categoryManger = categoryMangerPram;
     this._productManger  = productMangerPram;
     this._supplierManger = supplierMangerPram;
 }