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