public async Task<ParticipantCountDto> GetCountAsync() { var modelCount = await _participantDataService.GetCountAsync(); return new ParticipantCountDto { ParticipantCount = modelCount }; }
public async Task SendAsync() { _logger.Information("Sending report..."); var participantCount = await _participantService.GetCountAsync(); var messageModel = new ParticipantReportMessageModel { ParticipantCount = participantCount }; _rabbitPublicationService.PublishMessage(InterserviceQueueTypeEnum.Deneb, messageModel); _logger.Information("Report was sucessfully sent..."); }