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