예제 #1
0
 public async Task<bool> DeleteAsync(Location entity)
 {
     _db.Locations.Remove(entity);
     return await SaveAsync();
 }
예제 #2
0
 public async Task<bool> UpdateAsync(Location entity)
 {
     _db.Locations.Update(entity);
     return await SaveAsync();
 }
예제 #3
0
 public async Task<bool> CreateAsync(Location entity)
 {
     await _db.Locations.AddAsync(entity);
     return await SaveAsync();
 }