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()); } }
public string GetSchoolInfoByID(int id) { SchoolInfoManager manager = new SchoolInfoManager(); return(new JavaScriptSerializer().Serialize(manager.GetSchoolInfoByID(id))); }