```
public class CustomersController : ODataController
{
[Queryable]
public SingleResult<Customer> Get([FromODataUri]int key)
{
return
System.Web.Http.SingleResult.Create(new[] { new Customer { ID = 42 } }.AsQueryable());
}
}
```
throws a 500 with this error message
Unhandled Exception: System.AggregateException: One or more errors occurred. ---
> System.InvalidOperationException: The given model does not contain the type 'S
ystem.Web.Http.SingleResult`1[SingleResult.Customer]'.
This is a regression introduced with this [change](https://aspnetwebstack.codeplex.com/SourceControl/changeset/97b1c8ac2cb50f47df899012e2a156b47759eeb0).
Comments: Verified.
public class CustomersController : ODataController
{
[Queryable]
public SingleResult<Customer> Get([FromODataUri]int key)
{
return
System.Web.Http.SingleResult.Create(new[] { new Customer { ID = 42 } }.AsQueryable());
}
}
```
throws a 500 with this error message
Unhandled Exception: System.AggregateException: One or more errors occurred. ---
> System.InvalidOperationException: The given model does not contain the type 'S
ystem.Web.Http.SingleResult`1[SingleResult.Customer]'.
This is a regression introduced with this [change](https://aspnetwebstack.codeplex.com/SourceControl/changeset/97b1c8ac2cb50f47df899012e2a156b47759eeb0).
Comments: Verified.