Exemplo n.º 1
0
        public string DeleteSchoolInfo(int id)
        {
            try
            {
                SchoolInfoManager manager = new SchoolInfoManager();

                SchoolInfoEntity entity = manager.GetSchoolInfoByID(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());
            }
        }
Exemplo n.º 2
0
        public string GetSchoolInfoByID(int id)
        {
            SchoolInfoManager manager = new SchoolInfoManager();

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