Пример #1
0
 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));
         }
     }
 }