public ActionResult Update() { List <SourcePollingResult> res = new List <SourcePollingResult>(); try { if (IsRequestAuthorized()) { ConvertOrdersWithExpiredFollowUpDateAndCertainStatusToNewStatus(); SignalExpiredFollowUpDates(); foreach (var source in _sourceFactory.Sources()) { try { res.Add(source.Poll()); } catch (Exception e) { LogHelper.Error <SystemSurfaceController>("Error while polling source.", e); } } } } catch (Exception e) { LogHelper.Error <SystemSurfaceController>("Error while running regular update.", e); } return(Json(res, JsonRequestBehavior.DenyGet)); }