Ejemplo n.º 1
0
        public string DeleteClassRoomInfo(int id)
        {
            try
            {
                ClassRoomInfoManager manager = new ClassRoomInfoManager();

                ClassRoomInfoEntity entity = manager.GetClassRoomInfoByID(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());
            }
        }
Ejemplo n.º 2
0
        public string GetClassRoomInfoByID(int id)
        {
            ClassRoomInfoManager manager = new ClassRoomInfoManager();

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