With this code:
using System.Web.Http;
class MyClass : IHttpActionResult
{ ... }
I get the error:
The type or namespace name 'IHttpActionResult' could not be found (are you missing a using directive or an assembly reference?)
As shown here, the IHttpActionResult interface is defined in System.Web.Http
.
What is wrong?