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 PutArrangeClass(ArrangeClassEntity entity) { try { if (entity == null) { return("error"); } ArrangeClassManager manager = new ArrangeClassManager(); entity.CreateTime = DateTime.Now; entity.CreateTime = DateTime.Now; manager.Update(entity); return("success"); } catch (Exception e) { return(e.ToString()); } }