public static Product ChiTiet(string id) { var db = new SmartShopConnectionDB(); var sp = db.SingleOrDefault <Product>("SELECT * FROM Product WHERE MaSP=@0", id); sp.dsLoai = LoaiBus.DanhSach(); sp.LuotXem = sp.LuotXem + 1; db.Update("Product", "MaSP", sp); return(sp); }
public static void Sua(Loai l) { var db = new SmartShopConnectionDB(); db.Update("Loai", "MaLoai", l); }
public static void Sua(Comment cmt) { var db = new SmartShopConnectionDB(); db.Update("Comment", "IDCmt", cmt); }
public static void Sua(Product sp) { var db = new SmartShopConnectionDB(); db.Update("Product", "MaSP", sp); }
public static void Sua(Account acc) { var db = new SmartShopConnectionDB(); db.Update("Accounts", "UserName", acc); }
public static void Sua(int id, ChungLoai cl) { var db = new SmartShopConnectionDB(); db.Update("ChungLoai", "MaCL", cl); }