예제 #1
0
        public JsonResult Delete(long id)
        {
            bool isSuccess = contactDAO.Destroy(id);

            return(Json(new { status = isSuccess ? 200 : 500 }, JsonRequestBehavior.AllowGet));
        }