title: pass model from one action to another action in same controller
body: <p>I am trying to pass my model <strong>List&lt; Models.Statement > statementList</strong> from one action to another but i am receiving null value in the 2nd controller. Please suggest what is wrong here. Even tried with:</p>
  
  <pre><code>return RedirectToAction("WriteInTemplate", new { statementList = statementList });
  </code></pre>
  
  <p>Please help.</p>
  
  <pre><code>    public ActionResult SendPdfStatement(string InvoiceNumber)
      {
          try
          {
              InvoiceNumber = InvoiceNumber.Trim();
  
              ObjectParameter[] parameters = new ObjectParameter[1];
              parameters[0] = new ObjectParameter("InvoiceNumber", InvoiceNumber);
  
              List&lt;Models.Statement&gt; statementList = new List&lt;Models.Statement&gt;();
              statementList = _db.ExecuteFunction&lt;Models.Statement&gt;("uspInvoiceStatement", parameters).ToList&lt;Models.Statement&gt;();
  
              //WriteInTemplate(statementList);
              return RedirectToAction("WriteInTemplate", statementList );
  
          }
          catch (Exception e)
          {
              InvoiceSearchTool.Models.udtExceptionTable exception = new udtExceptionTable();
              exception.MethodName = "SendPdfStatement";
              exception.Exception = e.ToString();
              exception.Date = DateTime.Now;
              DYNAMICS_EXTEntities db = new DYNAMICS_EXTEntities();
              db.AddToudtExceptionTables(exception);
              db.SaveChanges();  
              return View("Error");
          }
      }
  
      public ActionResult WriteInTemplate(List&lt;Models.Statement&gt; statementList)
      {
          try
          {
              string invoiceNumber = statementList.FirstOrDefault().Invoice.ToString().Trim();
          ...................snip..........
  
  
              return RedirectToAction("CreateMessageWithAttachment", "email", invoiceNumber); 
          }
          catch (Exception e)
          {
              InvoiceSearchTool.Models.udtExceptionTable exception = new udtExceptionTable();
              exception.MethodName = "WriteInTemplate";
              exception.Exception = e.ToString();
              exception.Date = DateTime.Now;
              DYNAMICS_EXTEntities db = new DYNAMICS_EXTEntities();
              db.AddToudtExceptionTables(exception);
              db.SaveChanges();
  
              return View("Error");
          }
  
      }
  </code></pre>