public ActionResult <TweetDto> RepostTweet(int id, [FromBody] CredentialsDto credentialsDto) { var credentials = _mapper.Map <Credentials>(credentialsDto); var user = _userService.GetAndValidateUser(credentials); var tweetRepost = _tweetService.CreateRepostTweet(user, id); return(_mapper.Map <TweetDto>(tweetRepost)); }