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)); }
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)); }