private async Task ExecuteConsoleCommandFileUpload(Options options) { var fileUploadCommand = new FileUploadCommand(options); var storageFile = await _mediator.Send(fileUploadCommand); FileUploadViewModel uploadViewModel = new FileUploadViewModel { FilePath = fileUploadCommand.FilePath, FileName = Path.GetFileName(fileUploadCommand.FilePath), FileSize = ConvertingHelper.GetSizeString(storageFile.Size), Extension = storageFile.Extension }; LogInformationMessage($"File \"{fileUploadCommand.FilePath}\" has been uploaded"); _consolePrinter.PrintFileUploadedSuccessful(uploadViewModel); }