Exemplo n.º 1
0
        public void AssignGrade(string memberId, AddGradeVM gradeVM)
        {
            CourseMember cm    = courseMemberService.GetMemberWithUser(memberId);
            Grade        grade = new Grade(gradeVM.PercentualValue, gradeVM.Comment, gradeVM.Topic, gradeVM.Weight, cm);

            gradeService.AssignGrade(grade);

            gradeService.CommitChanges();
        }
Exemplo n.º 2
0
        public void Delete(string gradeId)
        {
            gradeService.DeleteById(gradeId);

            gradeService.CommitChanges();
        }