Creating Views

Now, we will create respective View page for the login. In this View page, we are just showing the following details:

@using System.Collections.Generic @using Microsoft.AspNet.Http @using Microsoft.AspNet.Http.Authentication @using AspNet.Identity.EntityFramework6 @model LoginViewModel @inject SignInManager<ApplicationUser> SignInManager @{ ViewData["Title"] = "Log in"; } <h2>@ViewData["Title"].</h2> <div class="row"> <div class="col-md-8"> <section> <form asp-controller="Account" asp-action="Login" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal" role="form"> <h4>Use a local account to log in.</h4> <hr /> <div asp-validation-summary="ValidationSummary.All" class="text-danger"></div> <div class="form-group"> ...

Get ASP.NET Core: Cloud-ready, Enterprise Web Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.