Repo pattern ready for migrations and testing

This commit is contained in:
Fergal Moran
2018-05-11 19:17:06 +01:00
parent 728b07eddc
commit 5f905d3516
24 changed files with 258 additions and 27 deletions

View File

@@ -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);