예제 #1
0
        //删除
        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));
        }
예제 #2
0
파일: List.aspx.cs 프로젝트: szmas/WCFDemo
 protected void Page_Load(object sender, EventArgs e)
 {
     repUsers.DataSource = client.DoWork();
     repUsers.DataBind();
 }