title: How to call an ActionResult from another ActionResult in asp.net
body: <p>I am creating a website for User registeration,display,login etc. I am currently trying to display the details of the user who have signed in. But within the actionResult of login I don't know how will i call the actionResult of display? I am new to asp.net. I need suggestions</p>
  
  <pre><code>public ActionResult login()
  {
      try
      {
          return View();
      }
      catch (Exception ex)
      {
          throw ex;
      }
  }
  
  [HttpPost]     
  public ActionResult login(DEntities.Users user)
  {
      try
      {
          services.CheckUser(user);
          controlsuccess = services.servicesuccess;
          if (controlsuccess == true)
          {
  
              return RedirectToAction("display");             
              //return View("display");
          }
          else
          { 
              return HttpNotFound();
          }
      }
      catch (Exception ex)
      {
          throw ex;
      }
  }
  
  public ActionResult display()
  {
      return View();
  }
  
  [HttpPost]
  public ActionResult display(int id = 0)
  {
      try
      {
          DEntities.Users user = services.GetUserbyId(id);
          return View(user);
  
      }
      catch (Exception ex)
      {
          throw ex;
      }
  }
  </code></pre>