public ActionResult Delete(int id) { if (UserInfoServices.Delete(id)) { return(Ok(new Result { State = 1, Message = "删除成功" })); } else { return(BadRequest(new Result { State = 0, Message = "删除失败" })); } }