title: keeping view name and corresponding controller method name different
body: <p>I have a controller method named <code>CreatePANApplication</code> but I have created view page for this named as <code>PANApplication</code>. Now when I am trying to call this method from another view page as:</p>
  <pre><code>// dataTable code block
  &lt;td&gt;    
      @Html.ActionLink(&quot;PAN Application&quot;, &quot;CreatePANApplication&quot;, new { id = item.PANKey }, new { @class = &quot;btn btn-warning&quot; })
  &lt;/td&gt;
  </code></pre>
  <p>getting error as:</p>
  <pre><code>The view 'CreatePANApplication' or its master was not found or no view engine supports the searched locations.
  </code></pre>
  <p><em>It means that I should not keep my controller name and corresponding view page name different.</em> But many times we have to change the view page name, what can we do at that time?</p>
  <p>Controller class:</p>
  <pre><code>public ActionResult CreatePANApplication(int? id)
          {
              try
              {
                  if (id == null)
                  {
                      return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
                  }
                  var data = (from z in db.PANModels
                              where z.PANKey == id
                              select z).ToList();
  
                  if (data == null)
                  {
                      return HttpNotFound();
                  }
                  return View(data);
              }
              catch (Exception)
              {
  
                  throw;
              }
          }
  </code></pre>