public IEnumerable <Cart> Carts()
 {
     return(_repository.GetCarts().ToList().Select(c => new Cart
     {
         CartId = c.CartId,
         ProductIds = DataTransferHelper.IdsToString(c.ProductIds)
     }));
 }
        public ActionResult GetAllCarts()
        {
            var carts = _cartRepository.GetCarts();

            return(Ok(carts));
        }