Added Hangfire and Hangfire SQLite extension for future task framework. Added a basic directory scanning implementation.
This commit is contained in:
parent
b899157015
commit
b3f210a8ab
6 changed files with 169 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue