ASP.NET Core 2.0 project structure
Default files in an ASP.NET Core project You have probably noticed by now that your empty project is not entirely empty, and does, in fact, include a couple of files: Program.cs: This is the entry point of the application. It loads configuration, initiates the logging...
View Components in asp.net core 2
View Components: The view component is a class that inherits from ViewComponent and exposes an InvokeAsync method whose signature matches the input data you might be passing from the view in Razor. Here’s a reasonable layout for the view component core code. It is a...
asp.net core 2.0 attribute based routing
asp.net core 2.0 attribute routing In asp.net core routing is a way to define custom routes to call various controllers and their action. In asp.net , there are two ways to define routes. Conventional based routing. (If you are not aware of conventional routing then...
Routing in ASP.NET Core 2.2
Routing in ASP.NET Core 2.2 ASP.NET Core routing is a way by which we can create named routes to call controllers and their respective actions. When a user writes any URL, the controller is called as per routes defined by the developer. In ASP.NET routing may...