public async Task <IActionResult> Delete(int id) { var dbJury = _context.Jurys.FirstOrDefault(x => x.ID == id); _context.Remove(dbJury); await _context.SaveChangesAsync(); return(Ok()); }
public async Task <IActionResult> Delete(int id) { var dbCritere1 = _context.Criteres.FirstOrDefault(x => x.Id == id); _context.Remove(dbCritere1); await _context.SaveChangesAsync(); return(Ok()); }
public void Delete <T>(T entity) where T : class { _context.Remove(entity); }