//删除 public ActionResult Remove(int?userid) { if (userid == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } SearchClient searchClient = new SearchClient(); SearchService.User user = searchClient.DoWork((int)userid); if (user == null) { return(HttpNotFound()); } return(View(user)); }
protected void Page_Load(object sender, EventArgs e) { repUsers.DataSource = client.DoWork(); repUsers.DataBind(); }