public async Task Create(Order entity) { _dbContext.Entry(entity).State = EntityState.Added; await _dbContext.SaveChangesAsync(); }
public async Task Update(MatchStadiumLocation entity) { _dbContext.Entry(entity).State = EntityState.Modified; await _dbContext.SaveChangesAsync(); }