title: Download a .srt file with the information in a database table
body: <p>I'm making this website to download subtitles. Right now I have this function to upload:</p>
  
  <pre><code>using (StreamReader sr = new StreamReader(file.InputStream, Encoding.Default, true))
  {
      string line;
      while ((line = sr.ReadLine()) != null)
      {
          srtContent += line + '\0';
      }
  }
  
  SubtitleFile item = new SubtitleFile();
  UpdateModel(item);
  item.state = State.Edit;
  item.SubtitleText = srtContent;
  item.name = char.ToUpper(item.name[0]) + item.name.Substring(1);
  repo.AddSubtitle(item);
  repo.Save();
  
  ModelState.Clear();
  </code></pre>
  
  <p>And this uploads the srtContent to a place in my databse called SubtitleText,</p>
  
  <p>Now I somehow need to be able to download this again.
  So far I only have a hyperlink to a View that I call Downloader,
  But that's all I got so far for the downloader.</p>
  
  <p>What I'm missing is a way to take the information of ID given and do some sort of streamwriter or something, and put the info back into a new file where it would be something like</p>
  
  <pre><code> Model.name + '.srt' 
  </code></pre>
  
  <p>with all the same text as I originally copied.</p>
  
  <p>Hopefully I made this understandable. All constructive help appriciated.</p>