public async Task <HttpResponseMessage> DeletePostsAsync(string postId)
        {
            m_client = GetFlurlClient();

            return(await StringExtensions.AppendPathSegments(m_baseUrl, PostsPath, postId)
                   .WithClient(m_client)
                   .DeleteAsync());
        }
 public async Task <HttpResponseMessage> PatchPostsAsync(string postId, PatchPostModel patchPostModel)
 {
     return(await StringExtensions.AppendPathSegments(m_baseUrl, PostsPath, postId)
            .AllowAnyHttpStatus()
            .SendJsonAsync(HttpMethod.Patch, patchPostModel));
 }
 public async Task <HttpResponseMessage> GetPostsAsync(string postId)
 {
     return(await StringExtensions.AppendPathSegments(m_baseUrl, PostsPath, postId)
            .AllowAnyHttpStatus()
            .GetAsync());
 }
 public async Task <HttpResponseMessage> UpdatePostsAsync(string postId, PostModel postPrincipal)
 {
     return(await StringExtensions.AppendPathSegments(m_baseUrl, PostsPath, postId)
            .AllowAnyHttpStatus()
            .PutJsonAsync(postPrincipal));
 }