This is a simple application for beginners that helps with how to create a delegate in an ASP.NET MVC application.
Introduction: We know that MVC is a integrated modules; that name is the models,views and controlers. ASP.NET MVC is the new version of ASP.NET. In this application we will learn about how to use a delegate in an ASP.NET MVC application to develope a simple module. ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and that gives you full control over markup for enjoyable, agile development. The controllers in an ASP.NET MVC application control the flow of application execution. Models is provide a business logic and views is provide a representation of data. This is a simple application for beginners that helps with how to create a delegate in an ASP.NET MVC application. Some types of Web applications will benefit from the MVC framework. Others will continue to use the traditional ASP.NET application pattern that is based on Web Forms and postbacks.
Step 1: Open Visual Studio 2010.
Step 2: Add the class in a program.
Code:
Step 3: Add a controller.
Step 4: Add views.
Step 6: Press crtl+f5 to run the program.
Output:
Diving Into ASP.NET WebAPI