Beispiel #1
0
        public async Task <JsonResult> GetUserSecretQuestion(string username)
        {
            try
            {
                var question = await _accountFacade.GetUserSecretQuestion(username);

                return(Json(question));
            }
            catch (Exception e)
            {
                Response.StatusCode = 500;
                return(Json(e.Message + e.InnerException));
            }
        }