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