public TweetResponseDto RepostTweet([FromBody] CredentialsDto credentialsDto, int id) { _userService.ValidateUser(credentialsDto); return(_mapper.Map <Tweet, TweetResponseDto>( _tweetService.CreateRepost( _userService.GetByUsername(credentialsDto.Username), id ) )); }