title: HttpPost Not working in asp.net mvc4
body: <p>I am new to asp.net MVC 4 . I just started demo app. Now my form is not posting here.</p>
  
  <p>Here is my form </p>
  
  <pre><code>@model PartyInvites.Models.GuestResponse
  
  @{
      Layout = null;
  }
  
  &lt;!DOCTYPE html&gt;
  
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta name="viewport" content="width=device-width" /&gt;
      &lt;title&gt;InvitationForm&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      @using (@Html.BeginForm("InvitationForm", "Home", FormMethod.Post))
      {
          &lt;p&gt;Your Name: @Html.TextBoxFor(x =&gt; x.Name)&lt;/p&gt;
          &lt;p&gt;Your Email: @Html.TextBoxFor(x =&gt; x.Email)&lt;/p&gt;
          &lt;p&gt;Your PhoneNo: @Html.TextBoxFor(x =&gt; x.PhoneNo)&lt;/p&gt;
          &lt;p&gt;
              Will You Attend: @Html.DropDownListFor(x =&gt; x.WillAttend, new[]
                        {new SelectListItem(){Text="Yes",Value=bool.TrueString},new SelectListItem()
                        {Text="No",Value=bool.FalseString}}, "--SELECT--")
          &lt;/p&gt;
  
          &lt;input type="button" value="Submit Invitation"  /&gt;
      }
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here is my Routing</p>
  
  <pre><code>namespace PartyInvites
  {
      public class RouteConfig
      {
          public static void RegisterRoutes(RouteCollection routes)
          {
              routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
              routes.MapRoute(
                  name: "Default",
                  url: "{controller}/{action}/{id}",
                  defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
              );
          }
      }
  }
  </code></pre>
  
  <p>And here is My Home controller</p>
  
  <pre><code> public class HomeController : Controller
      {
          //
          // GET: /Home/
  
          public ViewResult Index()
          {
              int hour = DateTime.Now.Hour;
              ViewBag.Greeting = hour &gt; 12 ? "Afternon" : "Morning";
              return View();
          }
  
          [HttpPost]
          public ViewResult InvitationForm(GuestResponse guest)
          {
              return View("Thank You for Registration", guest);
          }
  
          [HttpGet]
          public ViewResult InvitationForm()
          {
              return View();
          }
      }
  </code></pre>
  
  <p>I tried making all changes still <strong>post</strong> method is not invoked when i keep the break point. Pls help me!</p>