public async Task DeletePosition(int id) { var del_position = await _context.Positions.FindAsync(id); _context.Remove(del_position); }
public async Task DeleteEmployee(int id) { var del_employee = await _context.Employees.FirstOrDefaultAsync(key => key.Id == id); _context.Remove(del_employee); }