Пример #1
0
        public async Task DeletePosition(int id)
        {
            var del_position = await _context.Positions.FindAsync(id);

            _context.Remove(del_position);
        }
Пример #2
0
        public async Task DeleteEmployee(int id)
        {
            var del_employee = await _context.Employees.FirstOrDefaultAsync(key => key.Id == id);

            _context.Remove(del_employee);
        }