public void AddHistory(string URL) { if (URL != history.LastOrDefault()) { history.Add(URL); } HistoryAdded?.Invoke(this, EventArgs.Empty); }
public static async Task AddAsync(string stopCode, string name) { History history = new History { StopCode = stopCode, Name = name, TimeStamp = DateTime.Now }; await TramlineFiveContext.AddAsync(history); HistoryAdded?.Invoke(new HistoryDomain(history), new EventArgs()); }