// delete a product public static int Delete(int id) { using (var db = new ElectronicStoreConnectionDB()) { return(db.Delete <Product>("WHERE Id = @0", id)); } }
public static int Delete(string id) { using (var db = new ElectronicStoreConnectionDB()) { var user = Details(id); return(db.Delete(user)); } }