public static HttpResponseMessage CreateResponse(Topic topicInfo, HttpRequestMessage request)
        {
            var response = request.RespondOk();

            response.Content = new StringContent(topicInfo.Name);
            response.Headers.AddLinkHeader(SessionsLinkHelper.CreateLink(request, topicInfo));
            response.Headers.AddLinkHeader(SpeakersLinkHelper.CreateLink(request, topicInfo));

            return(response);
        }
        public static IHttpActionResult CreateResponse(Topic topicInfo, HttpRequestMessage request)
        {
            var response = new OkResult(request)
                           .WithContent(new StringContent(topicInfo.Name))
                           .WithLinkHeaders(new List <ILink>
            {
                SessionsLinkHelper.CreateLink(request, topicInfo),
                SpeakersLinkHelper.CreateLink(request, topicInfo)
            });

            return(response);
        }