private async Task <Series> LoadFile(Series series) { if (series.FileId != null) { series.File = await _fileAccessor.GetById(series.FileId); } return(series); }
private async Task <Mission> LoadFile(Mission mission) { if (mission.FileId != null) { mission.File = await _fileAccessor.GetById(mission.FileId); } return(mission); }
public async Task <File> GetById(string id) { return(await _fileAccessor.GetById(id)); }