Example #1
0
        //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());
            }
        }
Example #2
0
        public FaqsCate GetFaqsCateById(int cId)
        {
            FaqsCateDAO _faqsCateDAO = new FaqsCateDAO();

            return(_faqsCateDAO.GetFaqsCateById(cId));
        }
Example #3
0
        public void UpdateFaqsCate(FaqsCate _faqsCate)
        {
            FaqsCateDAO _faqsCateDAO = new FaqsCateDAO();

            _faqsCateDAO.UpdateFaqsCate(_faqsCate);
        }
Example #4
0
        public DataTable GetFaqsCate()
        {
            FaqsCateDAO _faqsCateDAO = new FaqsCateDAO();

            return(_faqsCateDAO.GetFaqsCate());
        }
Example #5
0
        public int CreateCateNewGet(FaqsCate _faqsCate)
        {
            FaqsCateDAO _faqsCateDAO = new FaqsCateDAO();

            return(_faqsCateDAO.CreateFaqsCateGet(_faqsCate));
        }
Example #6
0
        public void CreateCateNew(FaqsCate _faqsCate)
        {
            FaqsCateDAO _faqsCateDAO = new FaqsCateDAO();

            _faqsCateDAO.CreateFaqsCate(_faqsCate);
        }
Example #7
0
        //Lay Cate theo nhom


        #region GetFaqsCateSearchName
        public DataTable GetFaqsCateSearchName(string _text)
        {
            FaqsCateDAO _faqsCateDAO = new FaqsCateDAO();

            return(_faqsCateDAO.GetFaqsCateSearchName(_text));
        }
Example #8
0
        public DataTable GetFaqsCateParentAll(int Id)
        {
            FaqsCateDAO _faqsCateDAO = new FaqsCateDAO();

            return(_faqsCateDAO.GetFaqsCateParentAll(Id));
        }
Example #9
0
        /// <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);
        }