Esempio n. 1
0
        public string DeleteStudentClassHistory(int id)
        {
            try
            {
                StudentClassHistoryManager manager = new StudentClassHistoryManager();

                StudentClassHistoryEntity entity = manager.GetStudentClassHistoryByID(id);
                if (entity != null)
                {
                    entity.Valid      = "F";
                    entity.CreateTime = DateTime.Now;
                    entity.CreateTime = DateTime.Now;

                    manager.Update(entity);
                }

                return("success");
            }
            catch (Exception e)
            {
                return(e.ToString());
            }
        }
Esempio n. 2
0
        public string GetStudentClassHistoryByID(int id)
        {
            StudentClassHistoryManager manager = new StudentClassHistoryManager();

            return(new JavaScriptSerializer().Serialize(manager.GetStudentClassHistoryByID(id)));
        }