protected virtual WebApiResponse <bool> GetWebApiResponse(bool responseValue, HttpResponseMessage response) { var responseMessage = CreateResponseMessage(response); var errors = GetContentErrors(response); return(WebApiResponse <bool> .Create(responseValue, responseMessage, errors)); }
protected virtual WebApiResponse <T> GetWebApiResponse <T>(HttpResponseMessage response) { var responseValue = GetResponsePayload <T>(response); var responseMessage = CreateResponseMessage(response); var errors = GetContentErrors(response); return(WebApiResponse <T> .Create(responseValue, responseMessage, errors)); }