Beispiel #1
0
        public async Task <ActionResult> GetAllByShopIdAsync()
        {
            var userId = _claimsGetter.UserId(User?.Claims);
            var shop   = await _usersService.GetShopByUserIdAsync(userId);

            var productCategoriesForShop = await _productCategoriesService.GetAllByShopIdAsync(shop.Id);

            return(Ok(productCategoriesForShop));
        }