public void MaybeSend(DateTime date) { var history = _historyData.Read(date); if (history.Count <= 0) { return; } Send(BuildMailMessage(history, date)); }
public bool Contains(string url, string title) { var data = _data.Read(); if (data.Count == 0) { return(false); } if (data.Any(d => d.Url == url)) { return(true); } return(data.Any(d => d.Title == title)); }