public int AddCartItems(CartItem item) { try { int id = _repository.AddCartItems(item); return(id); } catch (Exception ex) { throw ex; } }