title: How to redirect a view to another action on the same Controller
body: <p>I have a controller called StudentController, Index.cshtml and central layout.cschtml, </p>
  
  <p>I am doing front end development after very long time and working on the frontend on asp.net mvc is quiet a challange for me now, so please forgive me if something is wrong.</p>
  
  <p>What I am trying to achieve is that when I am running my application it runs perfectly find, but when I click the link <strong>Student</strong> it successfully goes to the Student Index view and hit the Index method in the StudentController. </p>
  
  <p>But when I click on the Create New link on the Index view then it gives error (see at the bottom) , can someone guide what I am doing wrong....</p>
  
  <p><strong>StudentController</strong></p>
  
  <pre><code>public StudentController(){}
  public ActionResult Index()
  {            
      var students =_studentDb.GetAll();            
      return View(students);
  }
  
  [HttpPost]
  public ActionResult Create(Student student)
  {
      var result = _studentDb.Insert(student);
      return View("Create");
  }
  </code></pre>
  
  <p><strong>_layout.chtml</strong></p>
  
  <pre><code> &lt;ul class="nav navbar-nav"&gt;
                      &lt;li&gt;@Html.ActionLink("Home", "Index", new { Controller = "Home", Area = "Common" })&lt;/li&gt;                    
                      &lt;li&gt;@Html.ActionLink("Student", "Index", new { Controller = "Student", Area = "User" })&lt;/li&gt;
                      &lt;li&gt;@Html.ActionLink("New Student", "Index", new { Controller = "CreateStudent", Area = "User" })&lt;/li&gt;
                  &lt;/ul&gt;
  </code></pre>
  
  <p><strong>Index.chtml</strong></p>
  
  <pre><code>@model IEnumerable&lt;Student&gt;
  
  @{
      ViewBag.Title = "Index";
      Layout = "~/Views/Shared/_Layout.cshtml";
  }
  
  &lt;h2&gt;Index&lt;/h2&gt;
  
  &lt;p&gt;
      @Html.ActionLink("Create New", "Create",new {Controller="Student",Area="User" })        
  &lt;/p&gt;
  &lt;table class="table"&gt;
      &lt;tr&gt;        
          &lt;th&gt;
              @Html.DisplayNameFor(model =&gt; model.FirstName)
          &lt;/th&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(model =&gt; model.MiddleName)
          &lt;/th&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(model =&gt; model.LastName)
          &lt;/th&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(model =&gt; model.Gender)
          &lt;/th&gt;        
          &lt;th&gt;
              @Html.DisplayNameFor(model =&gt; model.FirstNameAr)
          &lt;/th&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(model =&gt; model.MiddleNameAr)
          &lt;/th&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(model =&gt; model.LastNameAr)
          &lt;/th&gt;
          &lt;th&gt;&lt;/th&gt;
      &lt;/tr&gt;
  
  @foreach (var item in Model) {
      &lt;tr&gt;        
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.FirstName)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.MiddleName)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.LastName)
          &lt;/td&gt;        
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.FirstNameAr)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.MiddleNameAr)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.LastNameAr)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
              @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
              @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
          &lt;/td&gt;
      &lt;/tr&gt;
  }
  
  &lt;/table&gt;
  </code></pre>
  
  <p><strong>Error</strong></p>
  
  <pre><code>Server Error in '/' Application.
  
  The resource cannot be found.
  
  Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 
  
  Requested URL: /User/Student/Create
  
  Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1055.0
  </code></pre>