title: Using MimeMapping in ASP.NET Core
body: <p>I'm trying to move my old mvc5 project to asp net core.
  Old code was:</p>
  <pre><code>public string ContentType
  {
      get
      {
          if (!string.IsNullOrEmpty(FileName))
              return MimeMapping.GetMimeMapping(FileName);
          return null;
      }
  }
  </code></pre>
  <p>Error is</p>
  <blockquote>
  <p>The name 'MimeMapping' does not exist in the current context</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/7jA4r.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7jA4r.png" alt="enter image description here" /></a></p>