AnswerController

The AnswerController won't be much different, at least for the time being:

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 AnswerController : Controller    {        #region Private Fields        private ApplicationDbContext DbContext;        #endregion        #region Constructor        public AnswerController(ApplicationDbContext context)        {            // Instantiate the ApplicationDbContext through DI            DbContext = context;        }        #endregion        #region RESTful conventions methods        /// <summary>        /// Retrieves the Answer with the given {id} /// </summary> ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.