I have an endpoint:
[ServiceContract]
public interface ICheck
{
[OperationContract]
[WebInvoke(Method = "GET", UriTemplate = "check")]
Task GetCheckAsync();
}
I don't know how to return a string
in the response to this endpoint. I try to return Task
object but I can't instaniate it.
Question: How to return an object containing message to the requester(frontend)?