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