title: MVC 4 Routing , Get/Post requests handling
body: <p>I'm faced with the following problem :</p>
  
  <p>I have a controller with lets say the following actions:</p>
  
  <pre><code>        [HttpGet]
          public ActionResult Index()
          {
              var viewModel = new IndexViewModel();
  
              return View("Index", viewModel);
          }
  
  
  
          [HttpPost]
          public void ExportToExcell(LeadsViewModel model)
          {
              // Export to excell code goes here
          }
  </code></pre>
  
  <p>The problem is the following: </p>
  
  <p>The User enters on Index page with this URL : /Controller/Index</p>
  
  <p>Then the user submits the form to Action ExportToExcel</p>
  
  <p>Data is exported to Excel( file downloaded ) and it's okay.</p>
  
  <p>The URL becomes /Controller/ExportToExcell</p>
  
  <p>Then when I am clicking "Enter" I am going To /Controller/ExportToExcell but with GET
  and of course falling with Page Not Found, the question is how properly to Deal with this in MVC </p>