ResultController

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 ...

Get ASP.NET Core 2 and Angular 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.