public JsonResult ChangeStatus(int id) { var result = new ProDb().ChangeStatus(id); return(Json(new { status = result })); }
// GET: Product public ActionResult Index() { var products = new ProDb().GetProducts(); return(View(products)); }