Example #1
0
 public CartItem(string iMaSP, int sl)
 {
     using (MOCK db = new MOCK())
     {
         this.ProductID = iMaSP;
         PRODUCT sp = db.PRODUCTS.Single(n => n.ProductID == iMaSP);
         this.ProductName = sp.ProductName;
         this.Image       = sp.Images;
         this.DonGia      = sp.Price.Value;
         this.SoLuong     = sl;
         this.ThanhTien   = DonGia * SoLuong;
     }
 }
Example #2
0
 public ImageProductDAO()
 {
     db = new MOCK();
 }
Example #3
0
 public CUSTOMERTYPEDAO()
 {
     db = new MOCK();
 }
Example #4
0
 public PRODUCTTYPEDAO()
 {
     db = new MOCK();
 }