Changed the LastLogin property of the User model to allow null values, explcitly change the Entity User context to create a User table, and resolved bug that caused build issues in the SongController API class. The bug was caused by forgetting to change the type of the method after switching it from ActionResult to IActionResult. #40

This commit is contained in:
amazing-username
2019-05-11 12:43:54 -04:00
parent a3c74b50bc
commit c0ac3cdd30
3 changed files with 18 additions and 13 deletions
+2 -2
View File
@@ -45,7 +45,7 @@ namespace Icarus.Controllers
[HttpGet]
[Authorize("read:song_details")]
public IActionResult<IEnumerable<Song>> Get()
public IActionResult Get()
{
List<Song> songs = new List<Song>();
Console.WriteLine("Attemtping to retrieve songs");
@@ -68,7 +68,7 @@ namespace Icarus.Controllers
}
[HttpGet("{id}")]
public IActionResult<Song> Get(int id)
public IActionResult Get(int id)
{
MusicStoreContext context = HttpContext
.RequestServices