public AchievmentSummary(Achievment achievment)
 {
     DateAwarded = achievment.DateAwarded;
     AwardType = achievment.AwardType;
     Course = achievment.Course.Title;
     Description = achievment.Description;
     Comments = achievment.Comments;
 }
 public ActionResult Create(Achievment achievment)
 {
     if (ModelState.IsValid)
     {
         achievmentRepository.Create(achievment);
         achievmentRepository.SaveChanges();
         //return to Instructor course details view
         //after award of achievment
         return RedirectToAction("Details", "CourseAdmin", new { id = achievment.CourseId });
     }
     return View(achievment);//Todo wiil not work
 }
Exemplo n.º 3
0
 public void AwardAchievment(Student student, Achievment achievment)
 {
 }