I want to have an API as such:
public class RelayController : ApiController
{
// POST api/values
public void Post([FromBody]IDataRelayPackage package
The serializer needs a type that it can construct, one with an empty (Default) constructor. Since an Interface can't be constructed, serialization fails and you get a null value.
Two options: