This is my GetFileData with return type FileResult so it should return a file:
public FileResult GetFileData(int fileId)
{
var file = db.Files.Single(x => x.Id == fileId);
return File(file.Content, file.ContentType);
}
but at last line, its showing red line on File and the error message is--the name file does not exist in current context. what should i do ??