// add new product public static void Add(Product p) { using (var db = new ElectronicStoreConnectionDB()) { db.Insert(p); } }
public static void Insert(Comment entity) { using (var db = new ElectronicStoreConnectionDB()) { db.Insert(entity); } }
public static void Add(View_Profile entity) { using (var db = new ElectronicStoreConnectionDB()) { db.Insert(entity); } }
public static void Add(Category entity) { using (var db = new ElectronicStoreConnectionDB()) { db.Insert(entity); } }
// add new image public static void Add(Image image) { using (var db = new ElectronicStoreConnectionDB()) { db.Insert(image); } }
public static void Add(OrderDetail entity) { using (var db = new ElectronicStoreConnectionDB()) { db.Insert(entity); } }
public static int Insert(Order o) { using (var db = new ElectronicStoreConnectionDB()) { db.Insert(o); return(o.Id); } }