Example #1
0
        public ActionResult RememberPassSendSMS(RemeberPassModel model)
        {
            ViewBag.AccountNotExistMsg = false;
            if (ModelState.IsValid)
            {
                var res = Manager.RememberPassSendSMS(model.Phone);
                if (res.IsError)
                {
                    if (res.ErrorMessage == "NOTEXIST")
                        ViewBag.AccountNotExistMsg = true;
                    else
                    {
                        ModelState.AddModelError("", res.ErrorMessage);
                    }
                }
                else
                {
                    var user = Manager.GetClientByPhone(model.Phone);
                    return PartialView("Partial/_rememberPassSendSMSSuccess", user.ClientId);
                }

            }

            return PartialView("Partial/_rememberPassSendSmsPartial", model);
        }
Example #2
0
 public PartialViewResult RememberPassSendSMS()
 {
     ViewBag.AccountNotExistMsg = false;
     var model = new RemeberPassModel();
     return PartialView("RememberPassSendSMS", model);
 }