Following api function returns PartnerApiModel object, which is good.
[HttpGet]
public HttpResponseMessage Get()
{
PartnerAPIModel apiPartner = new PartnerAPIModel();
apiPartner.PublicId = "1";
apiPartner.DisplayName = "Show this";
apiPartner.Name = "Test";
return Request.CreateResponse(HttpStatusCode.OK, apiPartner);
}
The result:
{
"PublicId": "7eda5b39-7ef8-ea29-6136-37701e05b0cc",
"DisplayName": "Show this",
"Name": "Test",
}
Is it possible to return only following?
{
"PublicId": "7eda5b39-7ef8-ea29-6136-37701e05b0cc",
"DisplayName": "Show this",
}