예제 #1
0
        public JsonResult ChangeStatus(int id)
        {
            var result = new ProDb().ChangeStatus(id);

            return(Json(new
            {
                status = result
            }));
        }
예제 #2
0
        // GET: Product
        public ActionResult Index()
        {
            var products = new ProDb().GetProducts();

            return(View(products));
        }