void PollVoteEvents_AfterDelete(PublicApi.PollVoteAfterDeleteEventArgs e) { var poll = PublicApi.Polls.Get(e.PollId); if (poll == null || !poll.Author.Id.HasValue || poll.Author.Id.Value == e.UserId) { return; } DeleteNotification(e.PollId, PublicApi.Polls.ContentTypeId, poll.Author.Id.Value, e.UserId); }
void Events_AfterDelete(PublicApi.PollVoteAfterDeleteEventArgs e) { _metricController.QueueForCalculation(e.PollId, PublicApi.Polls.ContentTypeId); }