Exemple #1
0
 public async Task Delete(int?id)
 {
     _context.Remove(await _context.Supervisors.FirstOrDefaultAsync(s => s.SupervisorId == id));
     await _context.SaveChangesAsync();
 }
 public async Task Delete(int?id)
 {
     _context.Remove(await _context.Employees.FirstOrDefaultAsync(e => e.EmployeeNumber == id));
     await _context.SaveChangesAsync();
 }