public IActionResult GetAllCartItems(int cartid) { try { List <CartItemModel> items = cartItemService.GetAllProductsInCartByCartID(cartid); List <CartItemModel> item = items; return(Ok(items)); } catch (Exception) { return(StatusCode(500)); } }
public IActionResult GetAllCartItems(int cartid) { try { List <CartItemModel> items = cartItemService.GetAllProductsInCartByCartID(cartid); List <CartItemModel> item = items; return(Ok(items)); } catch (Exception) { return(StatusCode(500)); } }