public FileResult DownloadFile(int FileId, int PubId) { Publication p1 = new Publication(); File f1 = p1.GetFile(FileId, Int32.Parse(Session["EmpId"].ToString()), PubId); return(File(f1.Content, System.Web.MimeMapping.GetMimeMapping(f1.FileName), f1.FileName)); }
public FileResult DownloadPub(int FileId, int PubId) { Publication p1 = new Publication(); File f1 = p1.GetFile(FileId, PubId); return(File(f1.Content, System.Web.MimeMapping.GetMimeMapping(f1.FileName), f1.FileName)); }