Eg: Follow the following steps.
- Create an empty MVC 2 web application.
- Add a controller named HomeController and write the following method.
public string Index() { return "My first MVC Application"; }
- Run the application.
The above application just returns a string value. We dont have any view. The browser will display only a string.
No comments:
Post a Comment