public void DeleteTimeline(DateTime start, DateTime end) { int count = TimelineService.DeleteTimeline(this.UserId, start, end); if (count == 0) { SendUpdate("Unable to find a timelines in this range"); return; } SendUpdate(string.Format("{0} entries have been deleted", count)); }
public void DeleteTimeline(int id) { Timeline timeline = TimelineService.GetTimeline(id); if (timeline == null) { SendUpdate("Unable to find a timeline with that id"); return; } TimelineService.DeleteTimeline(timeline); SendUpdate(string.Format("Timeline entry has been deleted: {0}: \"{1}\" at {2}", timeline.Id, timeline.Label, timeline.TimeStamp)); }