public IActionResult GetList()
        {
            var images = Directory.GetFiles(Path.Combine(Directory.GetCurrentDirectory(), _webpageSettings.Hour1400Path))
                         .Select(item => Hour1400File.CreateImageFileDetails(item))
                         .ToList();

            return(Json(images));
        }
        public IActionResult GetThumbnailList()
        {
            var images = Directory.GetFiles(Path.Combine(Directory.GetCurrentDirectory(), _webpageSettings.Hour1400Path))
                         .Select(item => Hour1400File.CreateImageFileDetails(item))
                         .Where(item => item.FileName.EndsWith("_thumb.jpg"))
                         .OrderByDescending(item => item.DateTaken)
                         .ToList();

            return(Json(images));
        }
        public Task <GetThumbnailsResponse> Handle(GetThumbnailsRequest request, CancellationToken cancellationToken)
        {
            var validator = new GetThumbnailsRequestValidator();
            var result    = validator.Validate(request);

            if (!result.IsValid)
            {
                throw new Exception(result.ToString());
            }

            var images = Directory.GetFiles(Path.Combine(Directory.GetCurrentDirectory(), _appSettings.Hour1400Path))
                         .Where(item => item.EndsWith("_thumb.jpg"))
                         .Select(item => Hour1400File.CreateImageFileDetails(item))
                         .Where(item => item != null)
                         .OrderByDescending(item => item.DateTaken)
                         .ToList();

            return(Task.FromResult(new GetThumbnailsResponse
            {
                Hour1400Files = images
            }));
        }