Added Hangfire and Hangfire SQLite extension for future task framework. Added a basic directory scanning implementation.

This commit is contained in:
Joseph Milazzo 2020-12-26 09:08:27 -06:00
parent b899157015
commit b3f210a8ab
6 changed files with 169 additions and 2 deletions

View file

@ -37,6 +37,15 @@ namespace API.Data
.Include(f => f.Folders)
.ProjectTo<LibraryDto>(_mapper.ConfigurationProvider).ToListAsync();
}
public async Task<LibraryDto> GetLibraryForIdAsync(int libraryId)
{
return await _context.Library
.Where(x => x.Id == libraryId)
.Include(f => f.Folders)
.ProjectTo<LibraryDto>(_mapper.ConfigurationProvider).SingleAsync();
}
public async Task<bool> LibraryExists(string libraryName)
{