예제 #1
0
        public JsonResult DeleteData(int?id)
        {
            if (id > 0)
            {
                db.Delete(id.Value);
                return(Json("success", JsonRequestBehavior.AllowGet));
            }

            return(Json("error", JsonRequestBehavior.DenyGet));
        }
예제 #2
0
        // GET: Clients/Delete
        public ActionResult Delete(int id)
        {
            var cp = new ClientProcess();

            cp.Delete(id);
            return(RedirectToAction("Index"));
        }