Beispiel #1
0
        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;
        }
Beispiel #3
0
 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));
 }
Beispiel #4
0
 partial void DeleteProduct(Product instance);
Beispiel #5
0
 partial void UpdateProduct(Product instance);
Beispiel #6
0
 partial void InsertProduct(Product instance);
Beispiel #7
0
 private void detach_Products(Product entity)
 {
     this.SendPropertyChanging();
     entity.ProductType = null;
 }
Beispiel #8
0
 private void attach_Products(Product entity)
 {
     this.SendPropertyChanging();
     entity.ProductType = this;
 }