Пример #1
0
        public static DataTable getArea()
        {
            string sql = @"Select * from Area";

            return(DAO.GetDataBySQL(sql));
        }
Пример #2
0
        public static DataTable getTopic(string s)
        {
            string sql = @"Select * from Topic";

            return(DAO.GetDataBySQL(sql));
        }
Пример #3
0
        public static DataTable getAllPost()
        {
            string sql = @"select * from Post";

            return(DAO.GetDataBySQL(sql));
        }
Пример #4
0
        public static DataTable getTop1Post()
        {
            string sql = @" select top 1 * from Post order by date desc";

            return(DAO.GetDataBySQL(sql));
        }
Пример #5
0
        public static DataTable GetAllAccount()
        {
            string sql = @"select id,username, password,email, role from Account";

            return(DAO.GetDataBySQL(sql));
        }