Пример #1
0
        public ActionResult SearchMemberInofBy(string text)
        {
            Response res = new Response();

            try
            {
                if (text.IsEmpty() || text.Trim().IsEmpty())
                {
                    throw new Exception("请输入信息查询");
                }
                var memberList = _checkOutService.SearchMemberBy(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));
        }