public async Task <StaffRestrict> Update(StaffRestrict staffRestrict) { _context.Entry(staffRestrict).State = EntityState.Modified; await _context.SaveChangesAsync(); return(staffRestrict); }
public async Task <Position> Update(Position position) { _context.Entry(position).State = EntityState.Modified; await _context.SaveChangesAsync(); return(position); }
public async Task <Department> Update(Department department) // обновление обьекта в БД { _context.Entry(department).State = EntityState.Modified; await _context.SaveChangesAsync(); return(department); }
public async Task <Employee> Update(Employee employee) { _context.Entry(employee).State = EntityState.Modified; await _context.SaveChangesAsync(); return(employee); }