Added right side overlay

This commit is contained in:
Fergal Moran
2018-04-27 00:03:33 +01:00
parent 7df296a5d6
commit f220292e24
19 changed files with 178 additions and 32 deletions

View File

@@ -64,6 +64,15 @@ namespace PodNoms.Api.Controllers {
}
}
[HttpGet("users")]
public async Task<IActionResult> GetAllForUser() {
var entries = await _repository.GetAllForUserAsync(_applicationUser.Id);
var results = _mapper.Map<List<PodcastEntry>, List<PodcastEntryViewModel>>(
entries.OrderByDescending(e => e.Id).ToList()
);
return Ok(results);
}
[HttpGet("all/{podcastSlug}")]
public async Task<IActionResult> GetAllForSlug(string podcastSlug) {
var entries = await _repository.GetAllAsync(podcastSlug);