mirror of
https://github.com/fergalmoran/podnoms.git
synced 2025-12-25 18:58:12 +00:00
Repo pattern ready for migrations and testing
This commit is contained in:
@@ -91,7 +91,7 @@ namespace PodNoms.Api.Controllers {
|
||||
|
||||
[HttpGet("all/{podcastSlug}")]
|
||||
public async Task<IActionResult> GetAllForSlug(string podcastSlug) {
|
||||
var entries = await _repository.GetAllAsync(podcastSlug);
|
||||
var entries = await _repository.GetAllForSlugAsync(podcastSlug);
|
||||
var results = _mapper.Map<List<PodcastEntry>, List<PodcastEntryViewModel>>(entries.ToList());
|
||||
|
||||
return Ok(results);
|
||||
|
||||
Reference in New Issue
Block a user