예제 #1
0
        public async Task <JsonResult> UnloggedUser()
        {
            try
            {
                var token = await _accountFacade.UnloggedUser();

                return(Json(token));
            }
            catch (LoginErrorException e)
            {
                Response.StatusCode = (int)HttpStatusCode.BadRequest;
                return(Json(e.Message));
            }
            catch (Exception e)
            {
                Response.StatusCode = 500;
                return(Json(e.Message));
            }
        }