private void selectGradeLevelComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            GradeManager aGradeManager = new GradeManager();
            Grade        aGrade        = new Grade();

            aGrade.BasicAmount      = aGradeManager.Get((int)selectGradeLevelComboBox.SelectedValue).BasicAmount;
            aGrade.MedicalAllowance = aGradeManager.Get((int)selectGradeLevelComboBox.SelectedValue).MedicalAllowance;
            aGrade.HouseRent        = aGradeManager.Get((int)selectGradeLevelComboBox.SelectedValue).HouseRent;
            totalSalaryTextBox.Text = aGrade.GetTotalSalary().ToString();

            gradeId = (int)selectGradeLevelComboBox.SelectedValue;
        }
Exemplo n.º 2
0
        public IActionResult View(string pupilsName, string pupilsSurname)
        {
            var grade = GradeManager.Get(pupilsName, pupilsSurname).Select(g => g.ToModelG()).ToList();

            return(View(grade));
        }