public CartController() { var productRepo = new ProductRepository(); _products = new ProductManger(productRepo); _cart = new CartService(); }
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; }
static void Main(string[] args) { ProductManger productManager = new ProductManger(new EfProductDal()); foreach (var product in productManager.GetAllByUnitPrice(40, 100)) { Console.WriteLine(product.ProductName); } }
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); } }
public HomeController() { var productRepo = new ProductRepository(); _products = new ProductManger(productRepo); }
public CategoriesController(CategoryManger CategoryPram, ProductManger ProductMangerPram) { this._ProductManger = ProductMangerPram; this._CategoryManger = CategoryPram; }
public ProductController(ProductManger productMangerPram, CategoryManger categoryMangerPram, SupplierManger supplierMangerPram) { this._categoryManger = categoryMangerPram; this._productManger = productMangerPram; this._supplierManger = supplierMangerPram; }