title: How to use an actionresult to return both a view and a partial view
body: <p>How can I use use an actionResult  to return both a view and a partial view.  Actually in case of an ajax request it should send a partial view else it should send a view.</p>
  
  <pre><code>   public ActionResult Test(string Name ="", DateTime? Date= null, string sex="" )
           {            
               myModel model = new myModel(Name, Date, Sex);
               if(IsAjaxRequest)
                   return PartialView("partialView", model)
               else
                   return View(model);
           }
  </code></pre>