public void Add()
        {
            var qualification = new DataLayer.EfClasses.Qualification
            {
                QualificationCode = Code,
                Description       = Description
            };

            _qualificationService.AddQualification(qualification);

            AssociatedQualification = new QualificationViewModel(qualification);
        }
Beispiel #2
0
        public void Edit()
        {
            var updatedQualification = new DataLayer.EfClasses.Qualification
            {
                QualificationId   = QualificationId,
                QualificationCode = Code,
                Description       = Description
            };

            QualificationToEdit.QualificationCode        = Code;
            QualificationToEdit.QualificationDescription = Description;

            _qualificationService.UpdateQualification(updatedQualification);
        }