Guides/MVC-Integration/Phase-II-Draft.md
... ...
@@ -264,8 +264,47 @@ namespace Sample_MVCApp.Controllers {
264 264
265 265
```
266 266
267
-Right click on public ActionResult Register() -> Add View -> Name it Register -> Add
268
-Copy and paste the below code to corresponding file
267
+**c.** Right click on public ActionResult Register() -> Add View -> Name it Register -> Add
268
+
269
+**d.** Copy and paste the below code to corresponding file
270
+
271
+'''html
272
+
273
+@model Sample_MVCApp.Models.User
274
+
275
+@{
276
+ ViewBag.Title = "Register";
277
+}
278
+
279
+<hgroup class="title">
280
+ <h1>@ViewBag.Title.</h1>
281
+ <h2>Create a new account.</h2>
282
+</hgroup>
283
+
284
+@using (Html.BeginForm()) {
285
+ @Html.AntiForgeryToken()
286
+ @Html.ValidationSummary()
287
+
288
+ <fieldset>
289
+ <legend>Registration Form</legend>
290
+ <ol>
291
+ <li>
292
+ @Html.LabelFor(m => m.Username)
293
+ @Html.TextBoxFor(m => m.Username)
294
+ </li>
295
+ <li>
296
+ @Html.LabelFor(m => m.Password)
297
+ @Html.PasswordFor(m => m.Password)
298
+ </li>
299
+ </ol>
300
+ <input type="submit" value="Register" />
301
+ </fieldset>
302
+}
303
+
304
+@section Scripts {
305
+ @Scripts.Render("~/bundles/jqueryval")
306
+}
307
+'''
269 308
### Step 7. Add user role model
270 309
271 310
... ...
\ No newline at end of file