Create an Alias from the Recipe in Orchard
问题 I want to create the following Alias from the recipe. How is this achieved? 回答1: I have created this class to add a command for Orchard to create a new alias from command line or recipe: using Orchard; using Orchard.Alias; using Orchard.Commands; using System; using Orchard.Environment; using System.Linq; namespace Contrib.Foundation.Common.Commands { public class AliasCommands : DefaultOrchardCommandHandler { private readonly Work<WorkContext> _workContext; private readonly IAliasService