public IActionResult EditCommand(CustomCommandViewModel command)
        {
            var customCommand = j64Config.CustomCommands.Find(x => x.CommandName == command.OriginalCommandName);

            if (customCommand == null)
            {
                customCommand = new Models.CustomCommand()
                {
                    CommandName = command.CommandName
                };
                j64Config.CustomCommands.Add(customCommand);
            }
            customCommand.CommandName = command.CommandName;

            for (int i = 0; i < customCommand.Actions.Count; i++)
            {
                customCommand.Actions[i].Sequence = i + 1;
            }
            j64HarmonyGatewayRepository.Save(j64Config);

            return(View("Index", CreateCustomCommandView()));
        }
        public IActionResult EditCommand(CustomCommandViewModel command)
        {
            var customCommand = j64Config.CustomCommands.Find(x => x.CommandName == command.OriginalCommandName);
            if (customCommand == null)
            {
                customCommand = new Models.CustomCommand()
                {
                    CommandName = command.CommandName
                };
                j64Config.CustomCommands.Add(customCommand);
            }
            customCommand.CommandName = command.CommandName;

            for (int i = 0; i < customCommand.Actions.Count; i++)
                customCommand.Actions[i].Sequence = i + 1;
            j64HarmonyGatewayRepository.Save(j64Config);

            return View("Index", CreateCustomCommandView());
        }