Exemplo n.º 1
0
 public async Task <IActionResult> GetRandom(string user)
 {
     try
     {
         return(Ok(await _twitterService.GetRandomTweet(user)));
     }
     catch (Exception e)
     {
         return(StatusCode(500, e.Message));
     }
 }