added new fields to the playlist entry, migrations and started with the api controller to manage the list
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
@@ -28,14 +27,14 @@ namespace Tv7Playlist.Controllers
|
||||
{
|
||||
var tracks = await _playlistLoader.LoadPlaylistFromUrl(_appConfig.TV7Url);
|
||||
var model = new HomeModel(tracks);
|
||||
|
||||
|
||||
return View(model);
|
||||
}
|
||||
|
||||
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
||||
public IActionResult Error()
|
||||
{
|
||||
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
|
||||
return View(new ErrorViewModel {RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user