public object DeleteGroupInfoById(string id) { try { GroupInfo info = GroupOperation.GetGroupInfoById(new Guid(id)); if (null != info) { GroupOperation.DeleteGroupInfo(new Guid(id)); return(string.Format("删除组【{0}】信息成功!", info.name)); } else { return(string.Format("删除失败,系统不存在编号【{0}】组信息!", id)); } } catch (Exception ex) { return(ex.Message); } }
private void button12_Click(object sender, EventArgs e) { Guid id = new Guid("1e143ba4-7805-46ce-a123-95cb850795ac"); bool ret = GroupOperation.DeleteGroupInfo(id); }