コード例 #1
0
        public ActionResult Delete(string id)
        {
            dao = new ProductsDao();
            bool check = dao.DeleteProduct(id);

            if (check)
            {
                return(RedirectToAction("ProductManager", "HomeAd"));
            }
            else
            {
                return(JavaScript("<script>alert(\"Xóa không thành công\")</script>"));
            }
        }