Beispiel #1
0
 public static Task <HttpResponseMessage> ToHttpResponseAsync(this ResponseBase response)
 {
     return(Task.FromResult(HttpResponseMessageHelper.GetJsonOk(response)));
 }
Beispiel #2
0
 public static Task<HttpResponseMessage> ToHttpResponseAsync(this object response, Dictionary<string, string> headers = null)
 {
     return Task.FromResult(HttpResponseMessageHelper.GetJsonOk(response, headers));
 }
Beispiel #3
0
 public static HttpResponseMessage ToHttpResponse(this ResponseBase response)
 {
     return(HttpResponseMessageHelper.GetJsonOk(response));
 }
Beispiel #4
0
 public static HttpResponseMessage ToHttpResponse(this ResponseBase response, Dictionary<string, string> headers = null)
 {
     return HttpResponseMessageHelper.GetJsonOk(response, headers);
 }