tsk-76: Added model and context for AccessLevel #108
@@ -37,7 +37,8 @@ public class SongStreamController : BaseController
|
|||||||
var context = new SongContext(_config!.GetConnectionString("DefaultConnection")!);
|
var context = new SongContext(_config!.GetConnectionString("DefaultConnection")!);
|
||||||
|
|
||||||
var song = context.Songs!.FirstOrDefault(sng => sng.Id == id);
|
var song = context.Songs!.FirstOrDefault(sng => sng.Id == id);
|
||||||
if (song == null) {
|
if (song == null)
|
||||||
|
{
|
||||||
return BadRequest();
|
return BadRequest();
|
||||||
}
|
}
|
||||||
var tokenManager = new Managers.TokenManager(this._config!);
|
var tokenManager = new Managers.TokenManager(this._config!);
|
||||||
|
|||||||
Reference in New Issue
Block a user