예제 #1
0
        public async Task <StaffRestrict> Update(StaffRestrict staffRestrict)
        {
            _context.Entry(staffRestrict).State = EntityState.Modified;
            await _context.SaveChangesAsync();

            return(staffRestrict);
        }
예제 #2
0
        public async Task <Position> Update(Position position)
        {
            _context.Entry(position).State = EntityState.Modified;
            await _context.SaveChangesAsync();

            return(position);
        }
예제 #3
0
        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);
        }