Exemple #1
0
        /// <summary>
        /// Creates a new sitemap.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns>
        ///   <c>PostSitemapResponse</c> with a new sitemap id.
        /// </returns>
        public PostSitemapResponse Post(PostSitemapRequest request)
        {
            var result = sitemapService.Put(
                new PutSitemapRequest
            {
                Data = request.Data,
                User = request.User
            });

            return(new PostSitemapResponse {
                Data = result.Data
            });
        }
Exemple #2
0
        /// <summary>
        /// Creates a new sitemap.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns>
        ///   <c>PostSitemapResponse</c> with a new sitemap id.
        /// </returns>
        public PostSitemapResponse Post(PostSitemapRequest request)
        {
            var result = sitemapService.Put(
                    new PutSitemapRequest
                    {
                        Data = request.Data,
                        User = request.User
                    });

            return new PostSitemapResponse { Data = result.Data };
        }