public AppDomainObject SetMasterLanguage(SetMasterLanguage command) { Guard.Valid(command, nameof(command), () => "Cannot set master language"); ThrowIfNotCreated(); RaiseEvent(SimpleMapper.Map(command, new AppMasterLanguageSet())); return(this); }
protected Task On(SetMasterLanguage command, CommandContext context) { return(handler.UpdateAsync <AppDomainObject>(context, a => a.SetMasterLanguage(command))); }