示例#1
0
        /// <summary>
        /// xoa ma topping tu gio hang`
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool XoaTopping(int id)
        {
            bool check = false;

            MaTopping.Remove(id);
            return(check);
        }
示例#2
0
 public GioHang(int maSanPham, List <int> maTopping, int soLuong)
 {
     MaSanPham = maSanPham;
     MaTopping.AddRange(maTopping);
     SoLuong = soLuong;
 }