/// <summary> /// Deletes the comment reply. /// </summary> /// <param name="commentReplyId">The comment reply identifier.</param> /// <returns></returns> public async Task <APIResponse> DeleteCommentReply(int commentReplyId) { try { var client = httpClientFactory.CreateClient(VendorServiceOperation.serviceName); var response = await client.DeleteAsync(servicesConfig.Identity + VendorServiceOperation.DeleteCommentReply(commentReplyId)); return(JsonConvert.DeserializeObject <APIResponse>(await response.Content.ReadAsStringAsync())); } catch (Exception ex) { logger.Error(ex, "Exception in method 'DeleteCommentReply()'"); var exMessage = ex.InnerException != null ? ex.InnerException.Message : ex.Message; return(new APIResponse(exMessage, HttpStatusCode.InternalServerError)); } }