Part 3 - How to implement Basic CRUD Functionality with the Entity Framework and ASP.NET MVC4 application

In this post, How to implement Basic CRUD Functionality with the Entity Framework and ASP.NET MVC4 application.

I have split the entire application split into following 3 parts for making things more simple and understandable specially for beginners.

Contact List
Add New Contact
Contact Person Contact No Country State Edit Delete
wee ewew China Hubei Edit Delete
AAA 3333333 China Hainan Edit Delete
Ghote Fenev Pavali Gopek France Languedoc-Roussillon Edit Delete
IPNA FENEV DOP FENEV Brazil Para Edit Delete
DSD SDSD Brazil Paraiba Edit Delete
kandari 123455689 India Delhi Edit Delete
testPerson TestNumber USA 4iana Edit Delete
Part 3 - How to implement Basic CRUD Functionality with the Entity Framework and ASP.NET MVC4 application
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>@ViewBag.Title - My ASP.NET MVC Application</title>
        <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <meta name="viewport" content="width=device-width" />
        @Styles.Render("~/Content/css")

        @* Add Bootstrap  *@
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" />

        @Scripts.Render("~/bundles/modernizr")
    </head>
    <body>
        <header>
            <div class="content-wrapper">
                <div class="float-left">
                    <p class="site-title">@Html.ActionLink("your logo here", "Index", "Home")</p>
                </div>
                <div class="float-right">
                    <section id="login">
                        @Html.Partial("_LoginPartial")
                    </section>
                    <nav>
                        <ul id="menu">
                            <li>@Html.ActionLink("Home", "Index", "Home")</li>
                            <li>@Html.ActionLink("About", "About", "Home")</li>
                            <li>@Html.ActionLink("Contact", "Contact", "Home")</li>
                        </ul>
                    </nav>
                </div>
            </div>
        </header>
        <div id="body">
            @RenderSection("featured", required: false)
            <section class="content-wrapper main-content clear-fix">
                @RenderBody()
            </section>
        </div>
        <footer>
            <div class="content-wrapper">
                <div class="float-left">
                    <p>&copy; @DateTime.Now.Year - My ASP.NET MVC Application</p>
                </div>
            </div>
        </footer>

        @Scripts.Render("~/bundles/jquery")
        @RenderSection("scripts", required: false)
    </body>
</html>

Posted By :