public void DisplayQualificationDataGrid(QualificationViewModel selectedQualification) { DisplayOpenings(selectedQualification.QualificationId); DisplayCertification(selectedQualification.QualificationId); DisplayPrerequisites(selectedQualification.QualificationId); //DisplayUnqualifiedCandidates(selectedQualification.QualificationId); //DisplayUnrelatedCourse(selectedQualification.QualificationId); }
public EditQualificationViewModel(QualificationViewModel qualificationToEdit, QualificationService qualificationService) { _qualificationService = qualificationService; QualificationToEdit = qualificationToEdit; QualificationId = qualificationToEdit.QualificationId; CopyEditableFields(qualificationToEdit); }
public void Add() { var qualification = new DataLayer.EfClasses.Qualification { QualificationCode = Code, Description = Description }; _qualificationService.AddQualification(qualification); AssociatedQualification = new QualificationViewModel(qualification); }
public void SearchQualification(string searchString) { ClearDisplayData(); var qualifications = _qualificationService.SearchQualification(searchString); foreach (var qualification in qualifications) { var qualificationViewModel = new QualificationViewModel(qualification); QualificationList.Add(qualificationViewModel); } }
private void CopyEditableFields(QualificationViewModel qualificationToEdit) { Code = qualificationToEdit.QualificationCode; Description = qualificationToEdit.QualificationDescription; }