I see many references to this piece of code on the internets:
if (Request.AcceptTypes.Contains ...
But for the life of me, I cannot find the namespace where this method exists.
We are using MVC4 WebApi, is this MVC3-specific?. Please, before I pull out the rest of my hair.
EDIT:
Going with @Styxxyless answer, this is what I get (no AcceptTypes). I know I am missing something obvious, but what is it?

Also, I have a reference to System.Web in my project.
For MVC, the code is as follows:
For Web API, the functionality is achieved using the following code:
or
An example of a MIME type is:
"image/jpeg"