Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model MovieApp.ViewModels.NewCustomerViewModel
- @{
- ViewBag.Title = "New";
- Layout = "~/Views/Shared/_Layout.cshtml";
- }
- <h2>New Customer</h2>
- @using (Html.BeginForm("Create", "Customers"))
- {
- <div class="form-group">
- @Html.LabelFor(c => c.Customer.Name)
- @Html.TextBoxFor(c => c.Customer.Name, new { @class = "form-control" })
- </div>
- <div class="form-group">
- @Html.LabelFor(c => c.Customer.BirthDate)
- @Html.TextBoxFor(c => c.Customer.BirthDate, new { @class = "form-control" })
- </div>
- <div class="form-group">
- @Html.LabelFor(c => c.Customer.MembershipType)
- @Html.DropDownListFor(c => c.Customer.MembershipTypeId
- ,new SelectList(Model.MembershipTypes, "Id","Name")
- ,"Select Membership Type"
- ,new { @class = "form-control" })
- </div>
- <div class="checkbox">
- <label>
- @Html.CheckBoxFor(c => c.Customer.IsSubscribedToNewsLetter) Subscribed to newsletter?
- </label>
- </div>
- <button type="submit" class="btn btn-primary">Save</button>
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement