Ejemplo n.º 1
0
        public ActionResult List(DateTime bDate, DateTime eDate, string SearchType = "", int codeID = 0, string code = "")
        {
            IEnumerable <listtable> ListTable;

            ViewBag.MinistryID = codeID;

            if (SearchType == "MinistrySearch")
            {
                ListTable = ListTableRepository.GetListByMinistry(codeID);
            }
            else if (SearchType == "StatusSearch")
            {
                ListTable = ListTableRepository.GetListByStatus(code);
            }
            else
            {
                ListTable = ListTableRepository.GetListByDateRange(bDate, eDate);
            }

            ViewBag.RecordCount = ListTable.Count();
            GetData(codeID);
            return(PartialView(ListTable));
        }