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()); }