protected void AddItem(object sender, ImageClickEventArgs e)
    {
        var imageButton = (ImageButton)sender;
        if (imageButton == null) return;
        var repeater = imageButton.Parent;
        var ddl = (DropDownList)repeater.FindControl("ddlRoles");
        if (ddl == null) return;
        var selectedItem = ddl.SelectedItem;
        if (selectedItem == null) return;

        var employeeDataAccess = new EmployeeDataAccess();
        var employees = employeeDataAccess.GetEmployees();
        var employee = employees[employeeGridView.EditIndex];

        var daRoles = new RoleDataAccess();
        var role = daRoles.GetRole(selectedItem.Value);

        var daEmployeeRoles = new EmployeeRoleDataAccess();
        daEmployeeRoles.AddRole(employee.EmployeeId, role.RoleId);
        daEmployeeRoles.SaveChanges();
        this.BindGrid();
    }
    protected void RemoveItem(object sender, ImageClickEventArgs e)
    {
        var imageButton = (ImageButton)sender;
        if (imageButton == null) return;
        var panel = (Panel)imageButton.Parent;
        if (panel == null) return;
        var roleLabel = (Label)panel.FindControl("Label1");
        if (roleLabel == null) return;

        var employeeDataAccess = new EmployeeDataAccess();
        var employees = employeeDataAccess.GetEmployees();
        var employee = employees[employeeGridView.EditIndex];

        var daRoles = new RoleDataAccess();
        var role = daRoles.GetRole(roleLabel.Text);

        var daEmployeeRoles = new EmployeeRoleDataAccess();
        daEmployeeRoles.RemoveRole(employee, role);
        daEmployeeRoles.SaveChanges();

        Roles.Add(role.Role1);
        this.BindGrid();
    }