Skip to content

Instantly share code, notes, and snippets.

@hmrtk
Created November 19, 2013 03:42
Show Gist options
  • Save hmrtk/7539959 to your computer and use it in GitHub Desktop.
Save hmrtk/7539959 to your computer and use it in GitHub Desktop.
@model Tuple<LoginViewModel,RegisterViewModel>
@using (Html.BeginForm("Login1", "Auth", FormMethod.Post))
{
@Html.TextBoxFor(tuple => tuple.Item2.Name, new {@Name="Name"})
@Html.TextBoxFor(tuple => tuple.Item2.Email, new {@Name="Email"})
@Html.PasswordFor(tuple => tuple.Item2.Password, new {@Name="Password"})
}
@using (Html.BeginForm("Login2", "Auth", FormMethod.Post))
{
@Html.TextBoxFor(tuple => tuple.Item1.Email, new {@Name="Email"})
@Html.PasswordFor(tuple => tuple.Item1.Password, , new {@Name="Password"})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment