コード例 #1
0
        public List <WordDTO> Get()
        {
            var identity = HttpContext.User.Identity as ClaimsIdentity;
            var userId   = identity.FindFirst(ClaimTypes.Name).Value;

            if (identity == null)
            {
                Response.StatusCode = 404;
            }
            int ID = Int32.Parse(userId);

            return(WordsRepository.GetWordsList(ID));
        }