private Command GetCurrentCommand() { var commandId = MappedDiagnosticsContext.Get("CommandId"); if (string.IsNullOrWhiteSpace(commandId)) { return(null); } return(_trackCommands.GetById(commandId)); }
private CommandResource GetCommand(int id) { return(_trackCommands.GetById(id).InjectTo <CommandResource>()); }