public async Task <IActionResult> DeleteTweetAsync(int tweetId) { var userOwnsTweet = await _tweetService.UserOwnsTweetAsync(tweetId, int.Parse(HttpContext.GetUserId())); if (userOwnsTweet) { var response = await _tweetService.DeleteTweetAsync(tweetId); return(Ok(new { status = true, })); } else { return(Unauthorized(new { status = false, ErrorMessage = "No permission to delete this tweet" })); } }