An open API service indexing awesome lists of open source software.

https://github.com/hhalim/webformmvc

Proof of concept for ASP.NET VB.NET, MVC C#, Core Web API living in harmony.
https://github.com/hhalim/webformmvc

asp-net asp-net-core-web-api asp-net-mvc c-sharp data-layer dependency-injection domain interface jquery vb-net

Last synced: 6 months ago
JSON representation

Proof of concept for ASP.NET VB.NET, MVC C#, Core Web API living in harmony.

Awesome Lists containing this project

README

          

# WebFormMVC

ASP.NET WebForm in VB.NET solution, mixed with a light ASP.NET MVC in C# with Core 2.0 Web API.
Onion inspired architecture. Loose coupling and clean separation of concern.

### UI.Project1
This project is located under the WebFormMVC web form project to allow access to the /MVC/UI.Project1/Views/.
The WebFormMVC project isolates the root folder structure access only to files and folders underneath it.
In the Global.asax code, the Razor engine is set to allow searching for Views *.cshtml files through /MVC/UI.Project1/Views/.

### REST API
The RestApi [appsettings.json](/RestApi/appsettings.json) requires the correct url for CORS operation set, which is already set by default to http://localhost, http://localhost:52595. The UI layer uses direct JavaScript calls into the web api, this cross domain call needs the correct url in the settings file. If this is incorrect, the CORS initial OPTION preflight call will fail.