Пример #1
0
        public string updateStudent(ATTclass ATTclassobj)
        {
            string   msg         = "";
            DLLclass DLLclassobj = new DLLclass();

            msg = DLLclassobj.update(ATTclassobj);
            return(msg);
        }
Пример #2
0
        public string deleteOne(int sn)
        {
            string resMsg = "";
            JavaScriptSerializer serializer  = new JavaScriptSerializer();
            DLLclass             DLLclassobj = new DLLclass();

            resMsg = DLLclassobj.deleteOne(sn);
            return(resMsg);
        }
Пример #3
0
        public string showAll()
        {
            JavaScriptSerializer serializer  = new JavaScriptSerializer();
            DLLclass             DLLclassobj = new DLLclass();
            List <ATTclass>      ATTlist     = DLLclassobj.showAll();
            string resMsg = serializer.Serialize(ATTlist);

            return(resMsg);
        }
Пример #4
0
        public string getOne(int sn)
        {
            string resMsg = "";
            JavaScriptSerializer serializer  = new JavaScriptSerializer();
            DLLclass             DLLclassobj = new DLLclass();
            ATTclass             ATTclassobj = DLLclassobj.getOne(sn);

            resMsg = serializer.Serialize(ATTclassobj);
            return(resMsg);
        }