Exemplo n.º 1
0
        public Api.ViewModels.QuizVM Post(string dictaatName, int quizId, [FromBody] IEnumerable <QuestionAttemptVM> attempt)
        {
            string userId = _userManager.GetUserId(HttpContext.User);

            Api.ViewModels.QuizVM result = _quizRepo.AddAttempt(quizId, userId, attempt);
            return(result);
        }