feature: Embed Frame Player
This commit is contained in:
@@ -46,6 +46,22 @@ public class TrackManager
|
||||
}
|
||||
}
|
||||
|
||||
// Lookup by vault entry key. No base-name conflict (unlike GetById), so this is a plain
|
||||
// public method. Mirrors the nullable-on-miss shape of ITrackService.GetById.
|
||||
public async Task<ResultContainer<TrackDto?>> GetByEntryKey(string entryKey)
|
||||
{
|
||||
try
|
||||
{
|
||||
var entity = await Repository.GetByEntryKeyAsync(entryKey);
|
||||
return ResultContainer<TrackDto?>.CreatePassResult(
|
||||
entity is null ? null : TrackConverter.Convert(entity));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return ResultContainer<TrackDto?>.CreateFailResult(e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<ResultContainer<List<TrackDto>>> GetAll()
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user