Exemple #1
0
 public async Task DeleteAsync(Match entity)
 {
     await Task.FromResult(_context.Matches.Remove(entity));
 }
Exemple #2
0
 public void Update(Match entity)
 {
     _context.Matches.Attach(entity);
     _context.Entry(entity).State = EntityState.Modified;
 }
Exemple #3
0
 public async Task<Match> AddAsync(Match entity)
 {
     var addedEntity = await _context.Matches.AddAsync(entity);
     return addedEntity.Entity;
 }