Blaze.Controllers.HomeController.Recent C# (CSharp) Method

Recent() private method

private Recent ( string account, string url, string auth ) : System.Web.Mvc.ActionResult
account string
url string
auth string
return System.Web.Mvc.ActionResult
        public ActionResult Recent(string account, string url, string auth)
        {
            if (offline)
            {
                var cookie = Request.Cookies["BlazeForce"];
                if( cookie == null || cookie.Value != "1")
                    return View("Offline");
            }
            string fullUrl = string.Format("https://{0}.campfirenow.com/{1}?{2}", account, url, Request["QUERY_STRING"]);
            var request = (HttpWebRequest)WebRequest.Create(fullUrl);
            request.Method = "GET";
            request.ContentType = "application/json";
            request.Headers["Authorization"] = "Bearer " + auth;
            try
            {
                var response = (HttpWebResponse) request.GetResponse();
                var reader = new StreamReader(response.GetResponseStream());
                var data = reader.ReadToEnd();
                dynamic obj = Newtonsoft.Json.JsonConvert.DeserializeObject(data);
                var processor = new MessageProcessor();
                foreach (var msg in obj.messages)
                {
                    msg.parsed_body = processor.ProcessMessage(Convert.ToString(msg.body));
                }
                string result = Newtonsoft.Json.JsonConvert.SerializeObject(obj);
                return Content(result, "application/json");
            }
            catch (WebException ex)
            {
                return HandleWebException(fullUrl,ex);
            }
        }