//public ActionResult Results(FormCollection col) public async System.Threading.Tasks.Task <ActionResult> GetResults(SearchData sData) //async { try { sData.ValidateInput(); if (sData.ValidationSuccessful) { sData.CreateSearchString(); Saver.Save(sData); await sData.SearchAsync(1); if (sData.ResultList.Count() > 0) { await sData.SearchAsync(2); await sData.SearchAsync(3); ViewBag.FileStatus = string.Format("{0} found.", sData.ResultList.Count()); return(View(sData)); } else { ViewBag.FileStatus = "No listings found."; return(View("Index", sData)); } } else { ViewBag.FileStatus = sData.Information; return(View("Index", sData)); } } catch (Exception e) { ViewBag.FileStatus = "Error"; sData.Error(); return(View("Index", sData)); } }