Exemple #1
0
        public Post NewPost(PostCreateRequest request)
        {
            var slug = _slugService.CreateSlugFromPostTitle(request.Title);

            return(_dataProvider.CreatePost(request.Title, request.Content, request.Categories, slug, request.Username, request.Publish, request.BlogId));
        }