public bool deleteHistoryIll(int id_historyIll) { historyIll Company = new historyIll(); bool result = Company.Delete(id_historyIll); return(result); }
public bool updateHistoryIll(int id_historyIll, DateTime dayUpdate_historyIll) { historyIll HistoryIll = new historyIll(); bool result = HistoryIll.Update(id_historyIll, dayUpdate_historyIll); return(result); }
public bool createHistoryIll(DateTime dayUpdate_historyIll, int id_ill) { historyIll HistoryIll = new historyIll(); bool result = HistoryIll.Create(dayUpdate_historyIll, id_ill); return(result); }
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()); }