Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static string GetName(ISignedFile signedFile)
- {
- if (signedFile == null) return null;
- try
- {
- if (signedFile.File != null && File.Exists(signedFile.File.ContentFilePath))
- {
- return signedFile.File.Name;
- }
- }
- catch (Exception ex)
- {
- EleWise.ELMA.Logging.Logger.Log.Error($"Не удалось вычислить наименование файла {signedFile.Id}", ex);
- }
- return $"{signedFile.DocumentType?.Name} по {signedFile.Request?.Name}";
- }
Advertisement
Add Comment
Please, Sign In to add comment