I'm quite new to the concept of razor. Basically, I need to download .pdf files. The paths are stored in my database.
I need to have a hyperlink on my cshtml which will call a function inside my Controller.
Then, on my controller, it will fetch the path of my file, which will return to my cshtml and do a windows.open(path).
Please let me know how can this be possible or perhaps a better approach to perform what I need to do.
linkText: "My Link",
public ActionResult DownloadFiles(int fileId, string fileType)
string FilePath = "";
FilePath = service.GetFilePath(fileId,fileType);