Make sure you have read and completed the previous part of this series before you begin.

In the previous part, I created the web service and added support for handling HTTP GET requests. In this part, I will complete the implementation of generic repositories and controllers.

Creating a Repository Pattern

Updating Models in ServerApp by replacing ProductId, SupplierId, and RatingId with “Id”.

Make sure you have read and completed the code defined in Part 1 and Part 2 of this series before you begin.

In this article, I will create an HTTP web service that the Angular application can use to request data from ASP.NET Core MVC.

Creating the Web Service

Creating the Web Service Controller

Create a ProductValuesController.cs in the ServerApp/Controllers folder and add the code shown below:

using Microsoft.AspNetCore.Mvc;
using ServerApp.Models;
namespace ServerApp.Controllers
public class ProductValuesController : Controller
private DataContext context;
public ProductValuesController(DataContext ctx)
context = ctx;
public Product GetProduct(long id)
return context.Products.Find(id);

Make sure you have read and completed the code defined in Part 1 of this series before you begin.

In this article, I will be doing the following;

  • I will add functionality to the ASP.NET Core MVC and Angular parts of the project to create a data model.
  • I will set up a SQL Server database to store the application data and define the model classes that Entity Framework Core will use to represent the data.
  • I will define the TypeScript classes on the angular side that will represent the data and define a repository that will make the data…

This is the first article of the series I am going to write for a complete full-stack application using AngularJS as front-end and Asp.Net MVC Core as back-end. This series will be a comprehensive tour of features of both technologies and we will end up with a complete full-stack project. Below are links to Each Part:

  1. Creating and connecting Angular and Asp.Net MVC Core Projects
  2. Creating data models to ClientApp and ServerApp
  3. Creating and consuming Web Services
  4. Generic Repositories and Controllers

This article is about using Angular and ASP.NET Core MVC together to create rich applications. Individually, each of these…

In this article, I have discussed how to set up a networking lab for automation on GNS3. The sequence of the article is as follows:-

  1. Downloading the required tools/software
  2. Installation and configuration of the downloaded tools
  3. Downloading/Configuring virtual appliances for GNS3
  4. Connecting physical/home network to GNS3 for automation purpose
  5. Troubleshooting GNS3 VM / VMware workstation Pro

Please note that you must create GNS3/VMware free accounts before downloading the following tools:

Downloading the required tools/Softwares

1) Download GNS3 all-in-one tool

GNS3 is a network software emulator. It allows the combination of virtual and real devices, used to simulate complex networks. It uses Dynamips emulation software to simulate Cisco IOS.

Introducing virt-manager

The virt-manager application is a Python-based desktop user interface for managing virtual machines through libvirt. virt-manager displays a summary view of running VMs, supplying their performance and resource utilization statistic.

Let’s start the Virtual Machine Manager by executing the virt-manager command or by pressing Alt + F2 and it will then display the dialog box of virt-manager .

Gul Raeez Gulshan

Artificial Intelligence Enthusiast, SDN Developer, Virtualization Expert

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store