|
//Gets the path of the PDF document
private string GetDocumentPath(string document)
{
string documentPath = string.Empty;
if (!System.IO.File.Exists(document))
{
var path = _hostingEnvironment.ContentRootPath.Replace("Server", "Client");//Le replace est temporaire je sais pas pourquoi c'est client maintenant
if (System.IO.File.Exists(path + "/wwwroot/" + document))
documentPath = path + "/wwwroot/" + document;
}
else
{
documentPath = document;
}
Console.WriteLine(documentPath);
return documentPath;
} |