Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

WebhookDefinitionService.cs 648B

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