| 1234567891011121314151617181920 |
- namespace Diligent.WebAPI.Business.Services
- {
- public class WebhookDefinitionService : IWebhookDefinitionService
- {
- private readonly DatabaseContext _context;
- private readonly IMapper _mapper;
-
- public WebhookDefinitionService(DatabaseContext context, IMapper mapper)
- {
- _context = context;
- _mapper = mapper;
- }
-
- public async Task<List<WebhookDefinitionViewDto>> GetAll()
- {
- var webhookDefinitions = await _context.WebhookDefinitions.ToListAsync();
- return _mapper.Map<List<WebhookDefinitionViewDto>>(webhookDefinitions);
- }
- }
- }
|