Created
December 29, 2017 23:59
-
-
Save A2H111/8b664c872a5da7d6027fa9809702b0a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model AspNetCoreMVCMongoDBDemo.Models.Customer | |
@{ | |
ViewData["Title"] = "Create"; | |
} | |
<h2>Create Customer Details</h2> | |
<hr /> | |
<div class="row"> | |
<div class="col-md-4"> | |
<form asp-action="Create"> | |
<div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
<div class="form-group"> | |
<label asp-for="CustomerId" class="control-label"></label> | |
<input asp-for="CustomerId" class="form-control" /> | |
<span asp-validation-for="CustomerId" class="text-danger"></span> | |
</div> | |
<div class="form-group"> | |
<label asp-for="CustomerName" class="control-label"></label> | |
<input asp-for="CustomerName" class="form-control" /> | |
<span asp-validation-for="CustomerName" class="text-danger"></span> | |
</div> | |
<div class="form-group"> | |
<label asp-for="Address" class="control-label"></label> | |
<input asp-for="Address" class="form-control" /> | |
<span asp-validation-for="Address" class="text-danger"></span> | |
</div> | |
<div class="form-group"> | |
<input type="submit" value="Create" class="btn btn-default" /> | |
</div> | |
</form> | |
</div> | |
</div> | |
<div> | |
<a asp-action="Index">Back to List</a> | |
</div> | |
@section Scripts { | |
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment