tsk-76: Added model and context for AccessLevel #108

Merged
kdeng00 merged 14 commits from tsk-76 into master 2025-03-11 21:45:32 -04:00
Showing only changes of commit 6f1e918f2f - Show all commits
@@ -37,7 +37,8 @@ public class SongStreamController : BaseController
var context = new SongContext(_config!.GetConnectionString("DefaultConnection")!);
var song = context.Songs!.FirstOrDefault(sng => sng.Id == id);
if (song == null) {
if (song == null)
{
return BadRequest();
}
var tokenManager = new Managers.TokenManager(this._config!);