Пример #1
0
        public ActionResult GetProjectList(int pageNumber, int pageRows)
        {
            ProjectHandler handler = new ProjectHandler(new ProjectDataAccess());
            IEnumerable <ProjectTableModel> model = handler.GetProjectTableModel(DateTime.Parse("2015-01-01"), DateTime.Parse("2015-12-31"), pageNumber, pageRows);

            return(PartialView("_TableList", model));
        }
Пример #2
0
        public ActionResult Index()
        {
            ProjectHandler handler = new ProjectHandler(new ProjectDataAccess());

            // Retrieve the project list for the past 6 months only
            DateTime to   = DateTime.Now.AddDays(1);
            DateTime from = DateTime.Now.AddMonths(-6);
            IEnumerable <ProjectTableModel> model = handler.GetProjectTableModel(from, to, 1, 10);

            ViewData["CreateProjectModel"] = new CreateProjectModel();
            return(View(model));
        }