Its corresponding ResultController is as follows:
using System; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using TestMakerFreeWebApp.ViewModels; using System.Collections.Generic; namespace TestMakerFreeWebApp.Controllers { [Route("api/[controller]")] public class ResultController : Controller { // GET api/question/all [HttpGet("All/{quizId}")] public IActionResult All(int quizId) { var sampleResults = new List<ResultViewModel>(); // add a first sample result sampleResults.Add(new ResultViewModel() { Id = 1, QuizId = quizId, Text = "What do you value most in your life?", CreatedDate = DateTime.Now, LastModifiedDate = DateTime.Now }); // add a bunch of other sample results for (int i = 2; i ...