title: Ambiguous Action Methods - ASP.net MVC
body: <p>I am having trouble doing something that is probably pretty simple!</p>
  
  <p>I have a stock listing that is done by 1) a simple form with parameters (\Index) and 2) an ajax called partial view that displays the list of stock (based on the params).</p>
  
  <p>On this same simple form (\Index) I have an action link to an "Add Stock" method which calls another form for adding stock.<br>
  When the user has finished adding the stock I redirect them back to the stock list page (\Index).  </p>
  
  <p>My issue is that I would like to "remember" the parameters that were initially entered in this form so the user isn't just directed back to a page with blank parameters forcing them to enter them again.</p>
  
  <p>I thought I could simply overload the Index method as such:</p>
  
  <pre><code>Function Index() As ActionResult
  
      Return View(New Stock_ViewModel)
  
  End Function
  
  Function Index(ByVal svm As Stock_ViewModel) As ActionResult
  
      Return View(svm)
  
  End Function
  </code></pre>
  
  <p>I get this error: <code>The current request for action 'Index' on controller type 'StockController' is ambiguous between the following action methods:...</code></p>
  
  <p>Now I have read <a href="https://stackoverflow.com/questions/1045316/asp-net-mvc-ambiguous-action-methods">this post</a> and it's answer but I cannot figure out how to implement the solution.  </p>
  
  <p>Is this solution applicable in my situation?  Is there a better way to acheive what I'm trying to do?</p>
  
  <p>Thanks in advance for any help!</p>