@model IEnumerable<Models.User>
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>ShowUser</title>

    <style type="text/css">
        .frame-wrapper {
            width:700px;
            font-family:Tahoma;
            font-size:11px;
            direction:ltr;
            margin:5px auto 0px auto;
            background-color:#EFEFEF;
            text-align:center;
            padding:5px;
            border-radius:7px; -moz-border-radius:7px; -webkit-border-radius:7px;
        }

        .frame-wrapper table {
            width:100%;
          
        }
            .frame-wrapper td {
                padding:5px;
            }
    </style>

</head>
<body>


    <div class="frame-wrapper">
        <h4>
            Learn Repository Pattern
        </h4>
        Repository Pattern in ASP.net MVC4 with EF codefirst 5


    </div>


    <div class="frame-wrapper">

        

        <table border="1">
           <tr>
               <th>
                   First Name
               </th>
               <th>
                   Last Name
               </th>
               <th>
                   Username
               </th>
               <th>
                   Password
               </th>
               <th>
                   Email
               </th>
               <th>
                   Role
               </th>
               <th>
                   Avatar
               </th>
               <th>
                   Active
               </th>
           </tr>


            

        @foreach (var item in Model)
        {
            <tr>
               <td>
                   @Html.DisplayFor(itemRow => item.FirstName)
               </td>
               <td>
                   @Html.DisplayFor(itemRow => item.LastName)
               </td>
               <td>
                   @Html.DisplayFor(itemRow => item.Username)
               </td>
               <td>
                   @Html.DisplayFor(itemRow => item.Password)
               </td>
               <td>
                   @Html.DisplayFor(itemRow => item.Email)
               </td>
               <td>
                   @Html.DisplayFor(itemRow => item.Role)
               </td>
               <td>
                   @Html.DisplayFor(itemRow => item.Avatar)
               </td>
               <td>
                   @Html.DisplayFor(itemRow => item.isActive)
               </td> 
                </tr>           
        }
            
        </table>
    </div>

            <div class="frame-wrapper" style="text-align:center ">
            @Html.ActionLink("Create Users", "Index")
        </div>

    <div class="frame-wrapper" style="text-align:center">
        Develop By <strong>Hamidreza Pahlavan</strong>
        <br />
        Contact: info@crystalweb.ir
    </div>


</body>
</html>
