public static Cart CreateNew(int site_id, string user_id) { CartDB db = new CartDB(); if (db.CartCreate(site_id, user_id)) { return Cart.GetCartByUserID(site_id, user_id); } throw new CartException("Could not create cart"); }