title: MVC Post to another action
body: <p>Strait to the details...</p>
  
  <p>I'm working on a personal project basically it's a task list. Anyways; I managed to get the standard Add, Edit, Delete a task functionality going good; now I'm stuck on something that I know must be very simple. I would like for users to be able to accept a task from the details page, now I could easily put that option in a drop down list and allow the user to select it and then save; BUT i would like to just provide a link that they can click "Accept Task" that link then goes to my controller action and pulls the task then updates the TaskStatus field.</p>
  
  <p>This is my controller action </p>
  
  <pre><code>        //
      // TaskStatus Updates
      [AcceptVerbs(HttpVerbs.Post), Authorize]
      public ActionResult AcceptTask(int id)
        {
          Task task = taskRepository.GetTask(id);
  
          try
          {
              task.TaskStatus = "Accepted";
              taskRepository.Save();
              return RedirectToAction("Details", new { id = task.TaskId });
          }
          catch (Exception)
          {
  
              throw;
          }
  
      }
  </code></pre>
  
  <p>So now how do I call this action from within my "Details" view? </p>