Пример #1
0
 public async Task UpdateAsync(Employee employee)
 {
     _context.Entry(employee).State = EntityState.Modified;
     await _context.SaveChangesAsync();
 }
Пример #2
0
 public async Task UpdateAsync(Position position)
 {
     _context.Entry(position).State = EntityState.Modified;
     await _context.SaveChangesAsync();
 }