Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. @model MovieApp.ViewModels.NewCustomerViewModel
  2. @{
  3. ViewBag.Title = "New";
  4. Layout = "~/Views/Shared/_Layout.cshtml";
  5. }
  6.  
  7. <h2>New Customer</h2>
  8. @using (Html.BeginForm("Create", "Customers"))
  9. {
  10. <div class="form-group">
  11. @Html.LabelFor(c => c.Customer.Name)
  12. @Html.TextBoxFor(c => c.Customer.Name, new { @class = "form-control" })
  13. </div>
  14.  
  15. <div class="form-group">
  16. @Html.LabelFor(c => c.Customer.BirthDate)
  17. @Html.TextBoxFor(c => c.Customer.BirthDate, new { @class = "form-control" })
  18. </div>
  19.  
  20. <div class="form-group">
  21. @Html.LabelFor(c => c.Customer.MembershipType)
  22. @Html.DropDownListFor(c => c.Customer.MembershipTypeId
  23. ,new SelectList(Model.MembershipTypes, "Id","Name")
  24. ,"Select Membership Type"
  25. ,new { @class = "form-control" })
  26. </div>
  27.  
  28.  
  29. <div class="checkbox">
  30. <label>
  31. @Html.CheckBoxFor(c => c.Customer.IsSubscribedToNewsLetter) Subscribed to newsletter?
  32. </label>
  33. </div>
  34.  
  35. <button type="submit" class="btn btn-primary">Save</button>
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement