Exemplo n.º 1
0
        public async Task <bool> UpdatePostAsync(string postId, PostDto post)
        {
            var result = ValidateId(postId);

            CheckIfIdNotEqualToChildId(result, post.PostId);
            ValidatePostBeforeSave(post);
            return(!(await _postServices.Update(result, post) is null));
        }