Esempio n. 1
0
        public string PutStudentClassHistory(StudentClassHistoryEntity entity)
        {
            try
            {
                if (entity == null)
                {
                    return("error");
                }

                StudentClassHistoryManager manager = new StudentClassHistoryManager();

                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 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());
            }
        }