title: Partial View Name in Ajax response
body: <p>I have a controller that returns one of two partial view depending on condition.  </p>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>public ActionResult ReviewCart(DepartmentProductViewModel model)
          {
              if(somecondition)
              {
                 return PartialView("_View1", model);
              }
  
  
              return PartialView("_View2", model);
          }
  </code></pre>
  
  <p>In my View I have Two tabs one for _View1 and other for _View2 with div tags. Like 
  <strong>Tab 1</strong></p>
  
  <pre><code>&lt;div id="shopping1"&gt;
                      @Html.Partial("_View1", Model)
                  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Tab 2</strong></p>
  
  <pre><code>&lt;div id="shopping2"&gt;
                          @Html.Partial("_View2", Model)
                      &lt;/div&gt;
  </code></pre>
  
  <p>In my Ajax response I would like check the if controller is returning _View1 then I would like to </p>
  
  <pre><code>$('#shopping1').html(data);
  </code></pre>
  
  <p>and if controller is returning _View2 then I would like to </p>
  
  <pre><code>$('#shopping2').html(data);
  </code></pre>
  
  <p>Any idea how to achieve this in Ajax success call.</p>
  
  <p>Thanks</p>