ITEM
Name
Details
0023
Online books
Asp.net
Download here
0024
Pdf materials
Asp.net MVC
When I click to Action link “Download Here” it redirect to
Action for download as
string file = "~/download_dir/" + attachment;
string contentType = "application/octet-stream";
return File(file, contentType, Path.GetFileName(file));
(Download complete)
Works fine up to here
I want also to insert the data into new table when clicked on above
“Download here” action link
Download by (userid)
Download date-time
Download item
Arun1
201704170206
Prina
Attachment: downodff.rar