public ActionResult deleteUser(string userId) { using (DataClassesDataContext DT = new DataClassesDataContext()) { try { DT.DelUser(userId); return(Json(0, JsonRequestBehavior.AllowGet)); } catch { return(Json(-1, JsonRequestBehavior.AllowGet)); } } }