/// <summary>
        /// Gets the story.
        /// </summary>
        /// <param name="details">The details.</param>
        /// <returns></returns>
        public async Task <APIResponse> GetStory(StoryIdDetails details)
        {
            try
            {
                var client   = httpClientFactory.CreateClient(BlogServiceOperation.serviceName);
                var response = await client.GetAsync(servicesConfig.Blog + BlogServiceOperation.GetStory(details.StoryId));

                if (response.IsSuccessStatusCode)
                {
                    var story = JsonConvert.DeserializeObject <List <StoryResponseDetails> >(await response.Content.ReadAsStringAsync());
                    foreach (var item1 in story)
                    {
                        byte[] b = System.IO.File.ReadAllBytes(item1.CoverPhotoOrVideo);
                        item1.CoverPhotoOrVideo = Convert.ToBase64String(b);
                    }
                    return(new APIResponse(story, HttpStatusCode.OK));
                }

                return(new APIResponse(response.StatusCode));
            }
            catch (Exception ex)
            {
                logger.Error(ex, "Exception in method 'GetStory()'");
                var exMessage = ex.InnerException != null ? ex.InnerException.Message : ex.Message;
                return(new APIResponse(exMessage, HttpStatusCode.InternalServerError));
            }
        }
        /// <summary>
        /// Gets the story.
        /// </summary>
        /// <param name="details">The details.</param>
        /// <returns></returns>
        public async Task <APIResponse> GetStory(StoryIdDetails details)
        {
            try
            {
                var client   = httpClientFactory.CreateClient(BlogServiceOperation.serviceName);
                var response = await client.GetAsync(servicesConfig.Blog + BlogServiceOperation.GetStory(details.StoryId));

                if (response.IsSuccessStatusCode)
                {
                    var story = JsonConvert.DeserializeObject <StoryResponseDetails>(await response.Content.ReadAsStringAsync());
                    return(new APIResponse(story, HttpStatusCode.OK));
                }

                return(new APIResponse(response.StatusCode));
            }
            catch (Exception ex)
            {
                logger.Error(ex, "Exception in method 'GetStory()'");
                var exMessage = ex.InnerException != null ? ex.InnerException.Message : ex.Message;
                return(new APIResponse(exMessage, HttpStatusCode.InternalServerError));
            }
        }