I have below lines of code and as we know WebInvoke enables Rest Service capablity. I am converting my code to CoreWCF but WebInvoke is not supported.
[OperationContract]
[WebInvoke(Method = "POST",
RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json,
UriTemplate = "GetUserData",
BodyStyle = WebMessageBodyStyle.WrappedRequest)]
string GetUserDetails();
I tried adding below namespace but still it is not supported.
using Microsoft.AspNetCore.Mvc;
Can someone help me to convert the above lines of code to CoreWCF.