public async Task <Boolean> DecryptFile(String imagePath, String filePath) { FileInfo file = new FileInfo(filePath); string guidString = file.Name.Split('_').Last().Split('.').First(); Guid guid = Guid.Parse(guidString); if (await verificationFace(imagePath, guid, Constant.GROUP_ID)) { String outputPath = Path.Combine(file.DirectoryName, file.Name.Split('_')[0]); encryptService.FileDecrypt(filePath, outputPath, Constant.DECRYPT); return(true); } return(false); }