Action Filters in MVC
Action Filters in MVC Action Filters are used to write processing loic before and after action execution. Example: First Create Controller using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using...
WebApI in ASP.NET MVC using Razor Example
It is a framework that can serve on Http and broad range of clients like Mobile, Tablet and browsers.It is ideal platform to create REST full services on .NET framework. Web API output can be in XML or in JSON format. Example: Step 1. Create Project with WEBAPI...
Entity Framework Code First Approach with Database Initializers example
In this example we are discussing about Code first approach in entity framework , he will see that how we can create database table into database using code first approach. Step 1. Create New Empty MVC Project Step 2. Install Entity framework using package manager...
Custom Login Using Entity Framework in asp.net MVC using Razor
Step 1: First Create new Project in Visual studio. Step 2: create new asp.net web application Step 3: Create new MVC Empty Project Step 4: First We will write connection string into web.config. In this example I have created a database named MVCEx and a table Login...