public ActionResult Index() { var response = _twitterService.GetUser("siravington"); var followers = _twitterService.GetFollowers("siravington"); var friends = _twitterService.GetFriends("siravington"); var notFollowing = _whosNotFollowing.Validate(friends, followers); return(View()); }
public HttpResponseMessage GetFollowers(string id) { try { string response = _twitterService.GetFollowers(id); JObject jResponse = JObject.Parse(response); return(Request.CreateResponse(HttpStatusCode.OK, jResponse)); } catch (Exception ex) { return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex)); } }