Ejemplo n.º 1
0
 public IActionResult Get(string user)
 {
     try
     {
         var followers   = gitClient.GetFollowerLevels(user, levels);
         var jsonContent = JsonConvert.SerializeObject(followers, Formatting.Indented);
         return(Content(jsonContent, "application/json"));
     }
     catch (Exception e)
     {
         return(StatusCode(503, e));
     }
 }