public void CheckOutCart() { cartBL = new CartBL(new Credential { UserName = InterplayStorage.SelectedUser.UserName, Password = InterplayStorage.SelectedUser.Password }); cartBL.CheckOutCart(_instance.id); this.ClearCartData(); if (_instance != null) { if (_instance.newCartCreated != null) { _instance.newCartCreated.Invoke(); } } }