Пример #1
0
        public JsonResult Recover(string Email)
        {
            var resp = personServ.RecoverAccount(Email);

            if (resp.Status == Status.Warning)
            {
                resp.Message = App_LocalResources.Login.AccountNoExist;
            }
            else if (resp.Status == Status.Success)
            {
                resp.Message = App_LocalResources.Login.ResetInstructions;
            }

            return(Json(new
            {
                Data = resp
            }));
        }