I developed a function that passing the Item id it generates a PDF file.
[HttpPut]
public void GerarPDF(long idItem)
{
....Função
}
It already works perfectly, I did the test through the Google Chrome app called PostMan, and passing the path it generates the PDF and downloads everything correctly, however if I send this same path in the body of an email through a <a></a>
so that the person who received the email can generate the PDF, this path does not work:
"<a href=http://localhost:11599/Item/GerarPDF?idItem=" + IdItem.ToString() + "> link Download PDF </a>"
Now I do not know if it is because it is trying to open by localhost or not, if anyone can help me, I thank you.