public ActionResult ProductView(int id) { BL.Product proModel = new BL.Product(); ProductModel proDuctDetails = proModel.ProductDetailsView(id); return(View(proDuctDetails)); }
public void getTopPro() { BL.Product productLogic = new BL.Product(); List <Product_table> selectedPro = productLogic.getTopSellingProduct(); ViewBag.selectedPro = selectedPro; }
private void CreateOrder(string[] item, string nameManager) { var date = Convert.ToDateTime(item[0]); var client = new Client(item [1],null,0); var product = new Product(item[2]); var sum = (float)Convert.ToDouble(item[3]); var manager = new Manager(nameManager,""); _orders.Add(new Order(date,client,product,manager,sum)); }
partial void DeleteProduct(Product instance);
partial void UpdateProduct(Product instance);
partial void InsertProduct(Product instance);
private void detach_Products(Product entity) { this.SendPropertyChanging(); entity.ProductType = null; }
private void attach_Products(Product entity) { this.SendPropertyChanging(); entity.ProductType = this; }