public IActionResult Test(int aquariumId) { try { var ids = _aquariumService.GetSnapshots(aquariumId).Where(s => s.PhotoId.HasValue).Select(s => s.PhotoId.Value).ToArray(); _logger.LogInformation("\n\n\n ** Attempting to create timelapse ** \n\n\n"); var buffer = _photoManager.CreateTimelapse(ids, new PhotoTimelapseOptions()); return(new OkObjectResult(buffer)); } catch (Exception e) { _logger.LogError("\n\n\n ** Could not create timelapse ** \n\n\n"); _logger.LogError("\n" + e); } return(Ok()); }