Пример #1
0
 public async Task Create(Order entity)
 {
     _dbContext.Entry(entity).State = EntityState.Added;
     await _dbContext.SaveChangesAsync();
 }
Пример #2
0
 public async Task Update(MatchStadiumLocation entity)
 {
     _dbContext.Entry(entity).State = EntityState.Modified;
     await _dbContext.SaveChangesAsync();
 }