public LearningPlusAssessment CreateAssessment(DoAssessmentViewModel model) { var assessment = this.mapper.Map <LearningPlusAssessment>(model); this.assessmentRepo.AddAsync(assessment).GetAwaiter().GetResult(); this.assessmentRepo.SaveChangesAsync().GetAwaiter().GetResult(); return(assessment); }
public IActionResult CreateAssessment(DoAssessmentViewModel model) { this.assessmentService.CreateAssessment(model); return(RedirectToAction("Markbook", new { id = model.ChildId })); }