public ActionResult Delete(int id) { try { ExchangGiftsBLL bll = new ExchangGiftsBLL(); ExchangGifts u = bll.Find(id); bll.Remove(u); bll.SaveChanges(); return Json(new { result = "ok" }, JsonRequestBehavior.AllowGet); } catch { return Json(new { result = "error" }, JsonRequestBehavior.AllowGet); } }