private void LoadJobRolesToComboBox() { cbRecurso.Items.Clear(); IEnumerable <JobRole> jobRoles = _jobRoleService.ReadAll(true); foreach (var jobRole in jobRoles) { cbRecurso.Items.Add(jobRole.Id + " " + jobRole.Name + " " + jobRole.Level); } }
private void LoadToDataGridView() { _service = new JobRoleService(); dgvJobRoles.Rows.Clear(); IEnumerable <JobRole> jobRoles = _service.ReadAll(true); foreach (var jobRole in jobRoles) { dgvJobRoles.Rows.Add(jobRole.Id, jobRole.Name, jobRole.Level, null, null); } }