public IActionResult CommandLine(string command) { var response = CommandLineResponse.Empty(); if (!_commandService.TryExecuteCommand(command, out var message)) { response = CommandLineResponse.Failure(message); } else { response = CommandLineResponse.Success(message); } return(View(response)); }
public IActionResult CommandLine() { return(View(CommandLineResponse.Empty())); }