//删除用户信息 public ActionResult DeleteUserInfo() { int id = int.Parse(Request["strId"]); UserInfo u = userInfoService.LoadEntities(s => s.ID == id).FirstOrDefault(); if (u != null) { if (userInfoService.DeleteEntity(u)) { return(Content("ok")); } else { return(Content("no")); } } else { return(Content("no")); } }