示例#1
0
        public bool deleteHistoryIll(int id_historyIll)
        {
            historyIll Company = new historyIll();
            bool       result  = Company.Delete(id_historyIll);

            return(result);
        }
示例#2
0
        public bool updateHistoryIll(int id_historyIll, DateTime dayUpdate_historyIll)
        {
            historyIll HistoryIll = new historyIll();
            bool       result     = HistoryIll.Update(id_historyIll, dayUpdate_historyIll);

            return(result);
        }
示例#3
0
        public bool createHistoryIll(DateTime dayUpdate_historyIll, int id_ill)
        {
            historyIll HistoryIll = new historyIll();
            bool       result     = HistoryIll.Create(dayUpdate_historyIll, id_ill);

            return(result);
        }
示例#4
0
        public ActionResult pageHistoryIll(int?page)
        {
            historyIll tempHistoryIll = new historyIll();

            var allHistoryIll = tempHistoryIll.Read();

            var pageNumber = page ?? 1;

            var onePageOfHistoryIlls = allHistoryIll.ToPagedList(pageNumber, 5);

            ViewBag.onePageOfHistoryIlls = onePageOfHistoryIlls;

            return(View());
        }