title: Passing viewModel when redirecting in ASP.NET MVC 4
body: <p>I have below statement:</p>
  
  <pre><code>return Redirect(this.Request.UrlReferrer.AbsolutePath);
  </code></pre>
  
  <p>this redirects to the caller view. It is working ok, but now I need to return a view model when redirecting, something like this (it's wrong):</p>
  
  <pre><code>return Redirect(this.Request.UrlReferrer.AbsolutePath(item));
  </code></pre>
  
  <p>So how can I achieve this?</p>
  
  <p>I want to do this because I have a jqrid in which one of its columns offers some actions, edit and delete the row. So if user clicks on edit, i retrieve some data from the id passed to the database. Then once I get this data, I populate a view model in order to update some textboxes in the view, so I need to pass the view model when redirecting.</p>
  
  <p>Below my code in the controller:</p>
  
  <pre><code>    public ActionResult Edit(int id)
      {            
          ItemViewModel item = new ItemViewModel();
          using (DBContext context = new DBContext())
          {
              Items itemToModify = context.Items.Single(i=&gt; i.ItemId == id);
  
              item.Desc = itemToModify.Desc;
              item.Name = itemToModify.Name;
          }
  
          return Redirect(this.Request.UrlReferrer.AbsolutePath, item); &lt;-- how to do this      
      }
  </code></pre>