Example #1
0
 /// <summary>
 /// Creates a callback function that sends newly created object as JSON. That
 /// callack function call be called directly or passed as a parameter to business logic components.
 ///
 /// If object is not null it returns 201 status code. For null results it returns
 /// 204 status code. If error occur it sends ErrorDescription with approproate status code.
 /// </summary>
 /// <param name="response">a Http response</param>
 /// <param name="result">a body object to created result</param>
 protected Task SendCreatedResultAsync(HttpResponse response, object result)
 {
     return(HttpResponseSender.SendCreatedResultAsync(response, result));
 }
 protected async Task SendCreatedResultAsync(HttpResponse response, object result)
 {
     await HttpResponseSender.SendCreatedResultAsync(response, result);
 }