//DeleteFaqsCate #region DeleteFaqsCateAll public void DeleteFaqsCateAll(int cateID) { //FaqsCateDAO _faqsCateDAO = new FaqsCateDAO(); try { DataTable table = GetFaqsCate(); for (int m = 0; m < table.Rows.Count; m++) { int pParent = Convert.ToInt32(table.Rows[m]["FaqsCateParentID"]); int cCate = Convert.ToInt32(table.Rows[m]["FaqsCateID"]); if (cateID == pParent) { this.DeleteFaqsCateAll(cCate); } // _faqsCateDAO.DeleteFaqsCate(cCate); } FaqsCateDAO _faqsCateDAO = new FaqsCateDAO(); _faqsCateDAO.DeleteFaqsCate(cateID); } catch (Exception ex) { throw new BusinessException(ex.Message.ToString()); } }
public FaqsCate GetFaqsCateById(int cId) { FaqsCateDAO _faqsCateDAO = new FaqsCateDAO(); return(_faqsCateDAO.GetFaqsCateById(cId)); }
public void UpdateFaqsCate(FaqsCate _faqsCate) { FaqsCateDAO _faqsCateDAO = new FaqsCateDAO(); _faqsCateDAO.UpdateFaqsCate(_faqsCate); }
public DataTable GetFaqsCate() { FaqsCateDAO _faqsCateDAO = new FaqsCateDAO(); return(_faqsCateDAO.GetFaqsCate()); }
public int CreateCateNewGet(FaqsCate _faqsCate) { FaqsCateDAO _faqsCateDAO = new FaqsCateDAO(); return(_faqsCateDAO.CreateFaqsCateGet(_faqsCate)); }
public void CreateCateNew(FaqsCate _faqsCate) { FaqsCateDAO _faqsCateDAO = new FaqsCateDAO(); _faqsCateDAO.CreateFaqsCate(_faqsCate); }
//Lay Cate theo nhom #region GetFaqsCateSearchName public DataTable GetFaqsCateSearchName(string _text) { FaqsCateDAO _faqsCateDAO = new FaqsCateDAO(); return(_faqsCateDAO.GetFaqsCateSearchName(_text)); }
public DataTable GetFaqsCateParentAll(int Id) { FaqsCateDAO _faqsCateDAO = new FaqsCateDAO(); return(_faqsCateDAO.GetFaqsCateParentAll(Id)); }
/// <summary> /// Thay doi thu tu Danh muc /// </summary> /// <param name="cId"></param> /// <param name="cOrder"></param> public void FaqsCateUpOrder(int cId, int cOrder) { FaqsCateDAO _faqsCateDAO = new FaqsCateDAO(); _faqsCateDAO.FaqsCateUpOrder(cId, cOrder); }