public FileResult DownLoad(int id) { DocumentAttachments file = helper.FindById(id); string fileName = file.FileNames; byte[] contents = file.FileContent; return(File(contents, System.Net.Mime.MediaTypeNames.Application.Octet, fileName)); }