Exemplo n.º 1
0
        public ActionResult List(int page = 0, int pageSize = 10)
        {
            var model = new PagedItemsModel();

            int recordCount;

            model.Items     = Agency.GetAgencyMasterList(out recordCount, page, pageSize);
            model.TotalRows = recordCount;
            model.PageSize  = pageSize;

            if (Request.IsAjaxRequest())
            {
                return(PartialView()); //TODO:Create Partial
            }
            return(View(model));
        }