Tutorial Builds Linked ASP.NET REST API and MVC Client for a Restaurant Dish Database
A DEV Community tutorial walks through building two cooperating ASP.NET applications around a restaurant food menu database. The first is FoodMenuApi, a REST API that supports listing, filtering, creating, updating and deleting dishes, and returns a 409 Conflict when a dish still appears on a restaurant menu. The second is FoodMenuClient, an ASP.NET Core MVC website that consumes the API through HttpClient so users can manage dishes via web forms. The guide also covers EF Core scaffolding, a repository pattern, DTOs, CORS, and a simple JavaScript page calling the API directly. The API runs on port 5050 and the website on port 5060, backed by a SQL Server database defined in an accompanying script.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in