Esempio n. 1
0
        /// <inheritdoc />
        public ResponseBase PostCommentApplication(PostCommentApplicationRequest request)
        {
            using (var client = GetClientByHeaderAuthorization(request.Token))
            {
                var response = client.PostAsync(UrlTemplates.PostCommentApplicationUrl, new StringContent(
                                                    JsonSerializer.Serialize(request),
                                                    Encoding.UTF8, "application/json")).Result;

                var content = JsonSerializer.Deserialize <ResponseBase>(response.Content.ReadAsStringAsync().Result, optionsSerialize);
                content.StatusCode = response.StatusCode;

                return(content);
            }
        }
Esempio n. 2
0
 /// <inheritdoc />
 public ResponseBase PostCommentApplication(PostCommentApplicationRequest request)
 {
     return(_applicationHttpService.PostCommentApplication(request));
 }