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