This is my code:
 public class StoreController:Controller
    {
        public ActionResult Index()
        {
            var page=new PageHelper<Store>();          
            return page.PageView(this);
        }
    }   
    public class PageHelper<T>
    {
        public List<T>DataSouce {get;set;}  
        public ActionResult PageView(Controller controller)
        {
            var action = controller.RouteData.Values["action"].ToString();
            if (controller.Request.IsAjaxRequest())
                //my question is it can not call the PartialView or controller.View 
                return controller.PartialView(action);               
            return controller.View(DataSource);
        }
    }  
I can not call the PartialView or controller.View in PageView function.
how I can do it?
now this code:"controller.PartialView(action);" in PageView function will be compiled
error. why can not call the View() or PartialView()?
 
     
    