예제 #1
0
        public IActionResult Get()
        {
            //We can extract the data that is being put into Claim on authentication
            var name    = this.User.FindFirst(ClaimTypes.Name).Value;
            var welcome = this.User.FindFirst("Hey").Value;


            logger.LogWarning("Get all called");
            var input = service.Get();

            return(Ok(input));
        }