public async Task <BaseResult <byte[]> > GetDocumentByPath(string path) { byte[] input = null; try { if (Environment.OSVersion.Platform != PlatformID.Unix) { input = await fileOperationHelper.GetDocumentByPath(path).ConfigureAwait(false); } else { input = smbFileOperationHelper.GetFile(path); } return(new BaseResult <byte[]>() { Result = input }); } catch (Exception e) { return(new BaseResult <byte[]>() { IsError = true, ExceptionMessage = e }); } }