Пример #1
0
        public async Task <IActionResult> AddPost([FromBody] PostViewModel postBody)
        {
            var post = await _profileService.AddPost(postBody.PostBody, User);

            if (post == null)
            {
                return(BadRequest());
            }

            return(Ok(post));
        }