Пример #1
0
        public IActionResult Index()
        {
            var viewModel  = new HomeViewModel();
            var claims     = HttpContext.User.Claims;
            var tokenClaim = claims.First(x => x.Type == ClaimTypesConstants.AccessToken).Value.ToString();

            viewModel.Products = _productClient.GetAllProducts(tokenClaim);
            return(View(viewModel));
        }