Example #1
0
        public ActionResult VerifyByOutsideInfo(int id, string name, decimal money, CyddPayType payType)
        {
            Response res = new Response();

            res.Successed = false;
            try
            {
                var currentUser = OperatorProvider.Provider.GetCurrent();
                var verifyInfo  = new VerifySourceInfoDTO();
                verifyInfo.SourceId     = id;
                verifyInfo.SourceName   = name;
                verifyInfo.RestaruantId = currentUser.DepartmentId.ToInt();
                verifyInfo.PayMethod    = (int)payType;
                verifyInfo.OperateValue = money;
                var resultInfo = _checkOutService.VerifyOutsideInfo(verifyInfo);
                if (resultInfo != null && resultInfo.Count > 0)
                {
                    res.Successed = true;
                }
                else
                {
                    res.Message = "网络故障,请稍后重新操作!";
                }
                res.Data = resultInfo;

                return(Json(res));
            }
            catch (Exception ex)
            {
                res.Message = ex.Message;
            }

            return(Json(res));
        }