private async Task ExecuteConsoleCommandFileInfo(Options options)
        {
            var fileInfoQuery         = new GetFileInfoQuery(options);
            var fileInfoResponseModel = await _mediator.Send(fileInfoQuery);

            FileInfoViewModel fileInfoViewModel = new FileInfoViewModel
            {
                FileName        = fileInfoResponseModel.FileName,
                Extension       = fileInfoResponseModel.Extension,
                CreationDate    = ConvertingHelper.GetDateString(fileInfoResponseModel.CreationDate),
                FileSize        = ConvertingHelper.GetSizeString(fileInfoResponseModel.FileSize),
                DownloadsNumber = fileInfoResponseModel.DownloadsNumber,
                Login           = fileInfoResponseModel.Login
            };

            _consolePrinter.PrintFileInfo(fileInfoViewModel);
        }
 public async Task <ICollection <ImportedFile> > Handle(GetFileInfoQuery request, CancellationToken cancellationToken)
 {
     return(await _context.ImportedFiles.ToListAsync());
 }