Create Product Detail form and perform CRUD using Entity framework model first approach.
Database Colum’s.
-ProductId
-ProductCatagory
-ProductName
-ProductPrice
-ProductQuantity
@model Example3.Models.Employee
<h3>Are you sure you want to delete this?</h3>
<div>
<h4>Employee</h4>
<hr />
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<dl class="dl-horizontal">
@Html.HiddenFor(model => model.EmpId)
<dt>
@Html.DisplayNameFor(model => model.Name)
</dt>
<dd>
@Html.DisplayFor(model => model.Name)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Address)
</dt>
<dd>
@Html.DisplayFor(model => model.Address)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Email)
</dt>
<dd>
@Html.DisplayFor(model => model.Email)
</dd>
<dt>
@Html.DisplayNameFor(model => model.MobileNo)
</dt>
<dd>
@Html.DisplayFor(model => model.MobileNo)
</dd>
</dl>
<div class="form-actions no-color">
<input type="submit" value="Delete" class="btn btn-default" /> |
@Html.ActionLink("Back to List", "EmpDetails")
</div>
}
</div>
Comments
Leave a comment