diff --git a/Newsbot.Collector.Api/Controllers/SubscriptionsController.cs b/Newsbot.Collector.Api/Controllers/SubscriptionsController.cs index bd6a953..981a6b2 100644 --- a/Newsbot.Collector.Api/Controllers/SubscriptionsController.cs +++ b/Newsbot.Collector.Api/Controllers/SubscriptionsController.cs @@ -2,6 +2,7 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; using Newsbot.Collector.Database.Repositories; using Newsbot.Collector.Domain.Dto; +using Newsbot.Collector.Domain.Entities; using Newsbot.Collector.Domain.Interfaces; using Newsbot.Collector.Domain.Models; @@ -68,7 +69,7 @@ public class SubscriptionsController : ControllerBase public IEnumerable GetBySourceId(Guid id) { var res = new List(); - var items = _subscription.ListBySourceID(id); + var items = _subscription.ListBySourceId(id); foreach (var item in items) res.Add(SubscriptionDto.Convert(item)); return res; } @@ -88,7 +89,7 @@ public class SubscriptionsController : ControllerBase var source = _sources.GetById(sourceId); if (source.Id == Guid.Empty) return new BadRequestResult(); - var item = _subscription.New(new SubscriptionModel + var item = _subscription.New(new SubscriptionEntity { Id = Guid.NewGuid(), SourceId = sourceId, @@ -116,7 +117,7 @@ public class SubscriptionsController : ControllerBase var source = _sources.GetById(sourceId); if (source.Id == Guid.Empty) return new BadRequestResult(); - var sub = _subscription.New(new SubscriptionModel + var sub = _subscription.New(new SubscriptionEntity { DiscordWebHookId = discordId, SourceId = sourceId,