public async Task <ServiceStatus> DeleteTweet(int id, string userId) { var tweet = await _tweetsRepository.GetTweet(id); if (tweet == null) { return(ServiceStatus.NotFound); } if (!tweet.UserID.Equals(userId)) { return(ServiceStatus.UnauthorizedAction); } await _tweetsRepository.DeleteTweet(id); return(ServiceStatus.Success); }