Example #1
0
        protected virtual WebApiResponse <bool> GetWebApiResponse(bool responseValue, HttpResponseMessage response)
        {
            var responseMessage = CreateResponseMessage(response);
            var errors          = GetContentErrors(response);

            return(WebApiResponse <bool> .Create(responseValue, responseMessage, errors));
        }
Example #2
0
        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));
        }