Exemplo n.º 1
0
        public async Task <ActionResult> Post([FromBody] BlogCreationDTO blogCreationDTO)
        {
            var insertedBlog = await _blogService.InsertAsync(blogCreationDTO);

            await _notificationSender.SendBlogPostNotificationsAsync(insertedBlog);

            return(new CreatedAtRouteResult("GetBlog", new { insertedBlog.ID }, insertedBlog));
        }