public ActionResult SearchRoomInfoBy(string text) { Response res = new Response(); try { if (text.IsEmpty() || text.Trim().IsEmpty()) { throw new Exception("请输入房号查询"); } var memberList = _checkOutService.SearchRoomBy(text); if (memberList == null || memberList.Count == 0) { throw new Exception("未查询到相关的客户信息!"); } res.Data = memberList; res.Successed = true; } catch (Exception ex) { res.Successed = false; res.Message = ex.Message; } return(Json(res)); }