Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

WebhookDefinitionService.cs 678B

123456789101112131415161718192021
  1. namespace Diligent.WebAPI.Business.Services
  2. {
  3. [ExcludeFromCodeCoverage]
  4. public class WebhookDefinitionService : IWebhookDefinitionService
  5. {
  6. private readonly DatabaseContext _context;
  7. private readonly IMapper _mapper;
  8. public WebhookDefinitionService(DatabaseContext context, IMapper mapper)
  9. {
  10. _context = context;
  11. _mapper = mapper;
  12. }
  13. public async Task<List<WebhookDefinitionViewDto>> GetAll()
  14. {
  15. var webhookDefinitions = await _context.WebhookDefinitions.ToListAsync();
  16. return _mapper.Map<List<WebhookDefinitionViewDto>>(webhookDefinitions);
  17. }
  18. }
  19. }