public FileStreamResult GetCV(string Id) { var user = userRepositories.getShowUser(Id); var file = user.CV; Stream stream = new MemoryStream(file); return(new FileStreamResult(stream, "application/pdf")); }