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

            product.dongia *= 1000;
            return(View(product));
        }
Exemple #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));
        }