Example #1
0
        public async Task <ActionResult <PostDTO> > updatStatePosts(string id, int state)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(Problem(statusCode: 422, title: "Invalid data, Id property cannot be empty!"));
            }

            await _postsDomain.updateState(id, state);

            return(Ok());
        }