@model HelloWorldMvcApp.ContactEmail
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
.field-validation-error {
@using (Html.BeginForm("Index", "home", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
@Html.ValidationSummary("", new { @class = "text-danger" })
@Html.LabelFor(m => m.Nome, new { @class = "col-md-2 control-label" })
@Html.TextBoxFor(m => m.Nome, new { @class = "form-control" })
@Html.LabelFor(m => m.Email, new { @class = "col-md-2 control-label" })
@Html.TextBoxFor(m => m.Email, new { @class = "form-control" })
@Html.LabelFor(m => m.Assunto, new { @class = "col-md-2 control-label" })
@Html.TextBoxFor(m => m.Assunto, new { @class = "form-control" })
@Html.LabelFor(m => m.Texto, new { @class = "col-md-2 control-label" })
@Html.TextAreaFor(m => m.Texto, new { @class = "form-control" })
<div class="col-md-offset-2 col-md-10">
<a href="@Url.Action("Email", "Email")" class="btn btn-danger"> Cancelar Atualizando</a>
<input type="button" class="btn btn-danger" value="Cancelar Resetando o Form" onclick="this.form.reset();"/>
<input type="submit" class="btn btn-success" value="Enviar" />