public AnnouncementLog Announce(AnnouncementTemplate template) { AnnounceTopic?.Invoke(template.Topic); return(new AnnouncementLog($"{template.Greeting}! I hearby announce that {template.Topic}")); }
public string Announce2(string topic) { AnnounceTopic?.Invoke(topic); return($"Hear ye! Hear ye! On this datetime {DateTime.Now} I hearby announce that {topic}"); }