Exemple #1
0
        public int UpdateFaq()
        {
            FaqDAO dao    = new FaqDAO();
            int    result = dao.Update(this);

            return(result);
        }
Exemple #2
0
        public int AddFaq()
        {
            FaqDAO dao    = new FaqDAO();
            int    result = dao.Insert(this);

            return(result);
        }
Exemple #3
0
        public Faq GetFaqById(string faqid)
        {
            FaqDAO dao = new FaqDAO();

            return(dao.SelectById(faqid));
        }
Exemple #4
0
        public List <Faq> GetAllFaq()
        {
            FaqDAO dao = new FaqDAO();

            return(dao.SelectAll());
        }