mvc 4

What's New in ASP.NET MVC 5?

The MVC is a framework, standard pattern for developing Web applications and MVC framework handled by three objects Model, View and Controller.

MVC 5 Key Features -
1.      One ASP.NET
2.      ASP.NET Identity
3.      Bootstrap
4.      Authentication filters
5.      Filter overrides
6.      Attribute routing

In detail -
1.      MVC 5 introduced to ASP.NET Identity for authentication and identity management.
2.      ASP.NET Identity is a new Membership provider to handle the authentication and authorization for social networking site just like Google, twitter, face-book etc.
3.      MVC 5 added  to authentication filters for authenticate to users using  third party authentication provider or your custom logic by using filter override methods and now we can override to filters on  method and  controller both.
4.      MVC 5 replaced to bootstrap by using the default template.
5.      MVC 5 added new to Attribute Routing [Route ("Empolyee/{EmpID}")].

Example for Routing code and it looks like- Attribute routing work with both ActionResult and Controller i.e.

[RoutePrefix("API/Company")]
public class CompanyController : BaseAPIController
{
    [Route("Employee/{EmpId}")]
    public ActionResult GetEmployeeById(string EmpId)
    {
        //TODO: Put your logic here.    
        return View();
    }
}
Reference -The useful link for MVC 5
ANIL SINGH

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..
My Blogs - https://code-sample.com and https://code-sample.xyz
My Book1 - BEST SELLING ANGULAR BOOK (INCLUDING ALL VERSIONS 2, 4, 5, 6, 7)
My Book2 - ANGULAR 2 INTERVIEW QUESTIONS BOOK - Both Books are Available on WorldWide.

www.code-sample.com/. Powered by Blogger.
^