#Izenda MVC Kit Integration Guide Phase II
##About
Phase II Integration is a continuation to the last step of Phase I integration. This guide will show how to add a login page to an MVC application and give different user roles to Izenda based on user login info. This guide will use Izenda mvc5r3 kit, a simple MVC application, which is downloadable at http://wiki.izenda.us/Guides/MVC-Integration/Sample_MVCApp.zip, and Visual Studio Express 2013 for Web.
Step 1. Connecting to Northwind Database
Get the ConnectionString
Step 2. Delete unnecessary Login Model files.
The sample MVC app used in the guide already contains its own login model, since we will add a simpler user login model, in order to avoid any unnecessary conflict, delete existing user login files, Controller, Model, and View.
Delete UserController.cs, UserModels.cs, and the whole User folder under Views as below

Step 3. Add Link to Izenda
Since the link to Izenda will be visible only to logged in users, cut the actionlink we made in step 12 of Phase I and paste it in _LoginPartial.cshtml, which contains conditional statements on login.
a. Open _Layout.cshtml in Views\Shared\ in Solution Explorer
b. Cut the ActionLink which leads to Izenda as below
<li>@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>
<li>@Html.ActionLink("Izenda", "ReportList", "Reporting")</li> //Cut this line
c. Open _LoginPartial.cshtml in Views\Shared\ in Solution Explorer
d. Paste the ActionLink in IF block as below so that link to Izenda is visible only after logging in
@if (Request.IsAuthenticated) {
<text>
Hello, @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })
@using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
@Html.AntiForgeryToken()
<a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
<li>@Html.ActionLink("Izenda", "ReportList", "Reporting")</li> // Paste the action link here
}
</text>
}
