public IStatus Create(string id, string value) { using (var cmd = new DBCommand()) { try { IStatus instance = StatusDAL.Create(cmd, id, value); cmd.Commit(); return(instance); } catch (Exception ex) { cmd.RollBack(); using (var builder = new MessageBuilder()) { string err = builder.AppendLine("创建状态信息错误!").AppendLine(ex).Message; throw new Exception(err); } } } }