Reputation: 127
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
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