public string DeleteArrangeClass(int id) { try { ArrangeClassManager manager = new ArrangeClassManager(); ArrangeClassEntity entity = manager.GetArrangeClassByID(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 GetArrangeClassByID(int id) { ArrangeClassManager manager = new ArrangeClassManager(); return(new JavaScriptSerializer().Serialize(manager.GetArrangeClassByID(id))); }