Ejemplo n.º 1
0
 public Task ChangeBafuSurfSpotAsync(BafuSurfSpot bafuSurfSpot)
 {
     using var db = new SurfsUpDbContext();
     db.Attach(bafuSurfSpot).State = EntityState.Modified;
     return(db.SaveChangesAsync());
 }
Ejemplo n.º 2
0
 public Task RemoveBafuSurfSpotAsync(BafuSurfSpot bafuSurfSpot)
 {
     using var db = new SurfsUpDbContext();
     db.Remove(bafuSurfSpot);
     return(db.SaveChangesAsync());
 }
Ejemplo n.º 3
0
 public Task RemoveMswSurfSpotAsync(MswSurfSpot mswSurfSpot)
 {
     using var db = new SurfsUpDbContext();
     db.Remove(mswSurfSpot);
     return(db.SaveChangesAsync());
 }