public void UpdateSettings(SetSiteSettings c) { Apply(new SiteSettingsUpdated { Id = State.Id, SmtpSettings = c.SmtpSettings, }); }
public void Handle(SetSiteSettings c) { _repository.Perform(c.Id, a => a.UpdateSettings(c)); }