And you get NoCache, and you get NoCache, and you get NoCache
- NoCache for everybody!
This commit is contained in:
parent
62e84ae620
commit
dbee8c1f6b
|
|
@ -2,6 +2,7 @@
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNet.Mvc;
|
using Microsoft.AspNet.Mvc;
|
||||||
using MusicStore.Models;
|
using MusicStore.Models;
|
||||||
|
using MusicStore.Spa.Infrastructure;
|
||||||
|
|
||||||
namespace MusicStore.Apis
|
namespace MusicStore.Apis
|
||||||
{
|
{
|
||||||
|
|
@ -52,6 +53,7 @@ namespace MusicStore.Apis
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("{genreId:int}/albums")]
|
[HttpGet("{genreId:int}/albums")]
|
||||||
|
[NoCache]
|
||||||
public async Task<ActionResult> GenreAlbums(int genreId)
|
public async Task<ActionResult> GenreAlbums(int genreId)
|
||||||
{
|
{
|
||||||
var albums = await _storeContext.Albums
|
var albums = await _storeContext.Albums
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue