Exemplo n.º 1
0
        public async Task <IActionResult> GetCart(int UserId)
        {
            var cart = await _repo.GetCart(UserId);

            var usersToReturn = _mapper.Map <IEnumerable <CartProductDto> >(cart);

            return(Ok(usersToReturn));
        }