diff --git a/samples/Interop45/Views/Manage/Index.cshtml b/samples/Interop45/Views/Manage/Index.cshtml index 997ca9b708..3e0bde8d00 100644 --- a/samples/Interop45/Views/Manage/Index.cshtml +++ b/samples/Interop45/Views/Manage/Index.cshtml @@ -39,17 +39,21 @@ @*
Phone Number:
- @(If(Model.PhoneNumber, "None")) - @If (Model.PhoneNumber <> Nothing) Then - @
- @[  @Html.ActionLink("Change", "AddPhoneNumber")  ] - @Using Html.BeginForm("RemovePhoneNumber", "Manage", FormMethod.Post, New With {.class = "form-horizontal", .role = "form"}) - @Html.AntiForgeryToken - @[] - End Using - Else - @[  @Html.ActionLink("Add", "AddPhoneNumber")   ] - End If + @(Model.PhoneNumber ?? "None") + @if (Model.PhoneNumber != null) + { +
+ [  @Html.ActionLink("Change", "AddPhoneNumber")  ] + using (Html.BeginForm("RemovePhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) + { + @Html.AntiForgeryToken() + [] + } + } + else + { + [  @Html.ActionLink("Add", "AddPhoneNumber")  ] + }
*@
Two-Factor Authentication: