Exemplo n.º 1
0
        public List <StudentTable> getAll(string user, string userId, int page, string stuName, string Professional, string school, string Phone)
        {
            string sqlStr = "update StudentTable set s_UserName = '******',s_Professional = '" + Professional + "',s_Department = '" + school + "',s_Phone = '" + Phone + "' where s_Id = " + userId;

            StudentTable.delOrUpTable(sqlStr);
            return(StudentTable.getAll(page));
        }
Exemplo n.º 2
0
        public List <StudentTable> getAll(string user, string userId, int page)
        {
            string sqlStr = "delete StudentTable where s_Id = " + userId;

            StudentTable.delOrUpTable(sqlStr);
            return(StudentTable.getAll(page));
        }