public virtual ActionResult Detail(string inNamespace, string name) { var commandType = _commandLocator.FindInNamespace(name, inNamespace); if (commandType != null) { return(Json(new CommandDescription(commandType, false))); } return(Json(new { error = "Unable to locate specified command." })); }