mirror of
https://github.com/fergalmoran/podnoms.git
synced 2025-12-26 03:09:27 +00:00
Repo pattern ready for migrations and testing
This commit is contained in:
@@ -36,7 +36,7 @@ namespace PodNoms.Api.Controllers {
|
||||
|
||||
[HttpGet]
|
||||
public async Task<IEnumerable<PodcastViewModel>> Get() {
|
||||
var podcasts = await _repository.GetAllAsync(_applicationUser.Id);
|
||||
var podcasts = await _repository.GetAllForUserAsync(_applicationUser.Id);
|
||||
var ret = _mapper.Map<List<Podcast>, List<PodcastViewModel>>(podcasts.ToList());
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user