public AchievmentViewModel(Student student, int courseId)
 {
     Course = student.CoursesTaken.FirstOrDefault(c=>c.Id == courseId);
     if (Course != null) CourseId = Course.Id;
     DateAwarded = DateTime.Now;
     Student = student;
     StudentId = student.Id;
 }
 public StudentInfo(Student student,int courseId)
 {
     Id = student.Id;
     Name = student.UserName;
     ImagePath = student.ImagePath;
     CourseId = courseId;
     AchievmentSummaries = student.Achievments
         .Select(s=>new AchievmentSummary(s)).ToList();
 }
예제 #3
0
 public void AwardAchievment(Student student, Achievment achievment)
 {
 }