Esempio n. 1
0
        public JsonResult ValidateCellphoneCode(ValidateCellphoneViewModel validateCellphone)
        {
            string errorMsg;
            bool   success = CustomerManager.ValidateCellphoneCode(UserMgr.ReadUserInfo(), validateCellphone, out errorMsg);

            JsonResult result = new JsonResult();

            result.Data = new AjaxResult()
            {
                Success = success,
                Message = errorMsg,
            };
            return(result);
        }
Esempio n. 2
0
        public JsonResult ValidateFindPasswordCellphoneCode(ValidateCellphoneViewModel validateCellphone)
        {
            string errorMsg;
            string data;
            int    customerSysNo;
            bool   success = CustomerManager.ValidateFindPasswordCellphoneCode(validateCellphone, out data, out customerSysNo, out errorMsg);

            JsonResult result = new JsonResult();

            result.Data = new AjaxResult()
            {
                Success = success,
                Message = errorMsg,
                Data    = data,
            };
            return(result);
        }