Exemple #1
0
        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);
        }
Exemple #2
0
        public IActionResult CreateAssessment(DoAssessmentViewModel model)
        {
            this.assessmentService.CreateAssessment(model);

            return(RedirectToAction("Markbook", new { id = model.ChildId }));
        }