user2822362
user2822362

Reputation: 127

REST API returning no response

I created a new REST API which is a PUT method.

[OperationContract]
[WebInvoke(UriTemplate = "/Place/Info", Method = "PUT", 
             BodyStyle = WebMessageBodyStyle.Bare)]
Info SavePlaceInfo(Info inf);

I'm passing {} I'm expecting some error but getting 0 response.

What could be the reason.

Upvotes: 0

Views: 893

Answers (1)

user2822362
user2822362

Reputation: 127

I'm able to resolve the issue. The issue was: Json serializer cannot serialize .Net DateTime.MinValue as its kind is of unsepecified.

Upvotes: 1

Related Questions