ResultController

Last but not least, here comes the ResultController (most relevant lines are highlighted):

using System;using Microsoft.AspNetCore.Mvc;using Newtonsoft.Json;using TestMakerFreeWebApp.ViewModels;using System.Collections.Generic;using System.Linq;using TestMakerFreeWebApp.Data;using Mapster;namespace TestMakerFreeWebApp.Controllers{    [Route("api/[controller]")]    public class ResultController : Controller    {        #region Private Fields        private ApplicationDbContext DbContext;        #endregion        #region Constructor        public ResultController(ApplicationDbContext context)        {            // Instantiate the ApplicationDbContext through DI            DbContext = context;        }        #endregion        #region RESTful conventions methods        /// <summary> /// Retrieves the Result with the given ...

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.