public DataTable GetNewsEventByListNewsID(string lang, string strCate, int num, string aproval, string isHome) { string restr = strCate.Remove(strCate.LastIndexOf(",")).Replace(",", "','"); NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.GetNewsEventByListNewsID(lang, restr, num, aproval, isHome)); }
public void UpdateNewsEvent(string strId, string value) { string restr = strId.Remove(strId.LastIndexOf(",")).Replace(",", "','"); NewsEventDAO newsEventDAO = new NewsEventDAO(); newsEventDAO.UpdateNewsEvent(restr, value); }
public DataTable GetNewsEventByCateAll(string strCate) { string restr = strCate.Remove(strCate.LastIndexOf(",")).Replace(",", "','"); NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.GetNewsEventByCateAll(restr)); }
public DataTable GetNewsEventByCateHomeList(string strCate, int group) { string restr = strCate.Remove(strCate.LastIndexOf(",")).Replace(",", "','"); NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.GetNewsEventByCateHomeList(restr, group)); }
public DataTable GetNewsEventByCateIsHomeAll(int n, string strCate, string approval, int group) { string restr = strCate.Remove(strCate.LastIndexOf(",")).Replace(",", "','"); NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.GetNewsEventByCateIsHomeAll(n, restr, approval, group)); }
public DataTable GetNewsEventPagingParent(string lang, int group, string strCate, PagingInfo _paging) { string restr = strCate.Remove(strCate.LastIndexOf(",")).Replace(",", "','"); NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.GetNewsEventPagingParent(lang, group, restr, _paging)); }
public DataTable GetNewsEventViewHome(string lang, string strCate, int n, int group) { string restr = strCate.Remove(strCate.LastIndexOf(",")).Replace(",", "','"); NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.GetNewsEventViewHome(lang, restr, n, group)); }
public DataTable GetNewsEventAll(string lang, int group, string strCate) { string restr = strCate.Remove(strCate.LastIndexOf(",")).Replace(",", "','"); NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.GetNewsEventAll(lang, group, restr)); }
public DataTable GetNewsEventByCateHot(string strCate, int group, string aproval, int num, string isHome, string isHot) { string restr = strCate.Remove(strCate.LastIndexOf(",")).Replace(",", "','"); NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.GetNewsEventByCateHot(restr, group, aproval, num, isHome, isHot)); }
public void DeleteNewsEvent(string strId) { string restr = strId.Remove(strId.LastIndexOf(",")).Replace(",", "','"); NewsEventDAO newsEventDAO = new NewsEventDAO(); newsEventDAO.DeleteNewsEvent(restr); }
public void UpdateNewsEventApproval(string strId, string value, string username, DateTime date) { string restr = strId.Remove(strId.LastIndexOf(",")).Replace(",", "','"); NewsEventDAO newsEventDAO = new NewsEventDAO(); newsEventDAO.UpdateNewsEventApproval(restr, value, username, date); }
public JsonResult ChangeStatus(long id) { var result = new NewsEventDAO().ChangeStatus(id); return(Json(new { status = result })); }
public ActionResult Index(string searchString, int page = 1, int pageSize = 10) { var dao = new NewsEventDAO(); var model = dao.ListAllPaging(searchString, page, pageSize); ViewBag.SearchString = searchString; return(View(model)); }
public ActionResult Edit(NewsEvents ne) { if (ModelState.IsValid) { var dao = new NewsEventDAO(); var result = dao.Update(ne); if (result) { ModelState.AddModelError("Cập nhật thành công", "success"); return(RedirectToAction("Index", "NewsEvent")); } else { ModelState.AddModelError("", "Cập nhật không thành công"); } } SetViewBag(ne.TypeCourseID); return(View()); }
public ActionResult Create(NewsEvents ne) { if (ModelState.IsValid) { var dao = new NewsEventDAO(); long id = dao.Insert(ne); if (id > 0) { ModelState.AddModelError("Thêm thành công", "success"); return(RedirectToAction("Index", "NewsEvent")); } else { ModelState.AddModelError("", "Thêm không thành công"); } } SetViewBag(); return(View()); }
public void UpdateNewsEvent(NewsEvent newsEvent) { NewsEventDAO newsEventDAO = new NewsEventDAO(); newsEventDAO.UpdateNewsEvent(newsEvent); }
public DataTable NewsEventSearch(string keyword, int cId, string lang) { NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.NewsEventSearch(keyword, cId, lang)); }
public DataTable NewsEventSearch(string _findter) { NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.NewsEventSearch(_findter)); }
public DataTable NewsEventSearchPaging(string _findter, PagingInfo _paging) { NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.NewsEventSearchPaging(_findter, _paging)); }
public DataTable GetNewsEventView(string lang, int group) { NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.GetNewsEventView(lang, group)); }
public DataTable GetNewsEventLates(string lang, int n, string approval, int group) { NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.GetNewsEventLates(lang, n, approval, group)); }
public void UpdateNewsEventApproval(int Id, string value, string username, DateTime date) { NewsEventDAO newsEventDAO = new NewsEventDAO(); newsEventDAO.UpdateNewsEventApproval(Id, value, username, date); }
public DataTable GetNewsEventViewAll(string lang, int n, int group, string approval) { NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.GetNewsEventViewAll(lang, n, group, approval)); }
public DataTable GetNewsEventByCate(int iCateId, string lang, int n, string approval) { NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.GetNewsEventByCate(iCateId, lang, n, approval)); }
public DataTable GetNewsEventHits(string lang, int n, string approval) { NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.GetNewsEventHits(lang, n, approval)); }
public DataTable NewsEventFollow(int Id, int cId, int n) { NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.NewsEventFollow(Id, cId, n)); }
public void DeleteNewsEvent(int nId) { NewsEventDAO newsEventDAO = new NewsEventDAO(); newsEventDAO.DeleteNewsEvent(nId); }
public DataTable NewsEventFollow(int Id, int cId, int n, string approval) { NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.NewsEventFollow(Id, cId, n, approval)); }
public NewsEvent GetNewsEventById(int nId) { NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.GetNewsEventById(nId)); }
public DataTable NewsEventParent(int pId, string approval) { NewsEventDAO newsEventDAO = new NewsEventDAO(); return(newsEventDAO.NewsEventParent(pId, approval)); }