Beispiel #1
0
        public ActionResult Prd_detail(string tendh)
        {
            dongho product = DAO_product.getByName(tendh).First();

            product.dongia *= 1000;
            return(View(product));
        }
Beispiel #2
0
        public ActionResult Delete_Product(string tendh, string url)
        {
            dongho check_dh = DAO_product.getByName(tendh).First();

            if (check_dh != null)
            {
                DAO_product.delete(check_dh);
            }
            return(Redirect(url));
        }
Beispiel #3
0
 public ActionResult Edit_Prd(dongho dh, string url)
 {
     DAO_product.update(dh);
     return(Redirect(url));
 }
Beispiel #4
0
        // GET: admin/Product
        //TheWatchersEntities db = new TheWatchersEntities();
        public ActionResult Products()
        {
            List <dongho> list_new_prod = DAO_product.getAll();

            return(View(list_new_prod));
        }