Beispiel #1
0
        public IActionResult GetAllItemsForUser()
        {
            System.Security.Claims.Claim userIdClaim = User.Claims.Single(c => c.Type == "id");

            var items = _itemData.GetAllItemsForUser(Guid.Parse(userIdClaim.Value));

            return(Ok(items));
        }