//POST home public async Task<ActionResult> Index(string search, HomeScreen screen) { iDunnoDB db = new iDunnoDB(); var iable = await db.LogSearch(search); TargetAPI api = new TargetAPI(); screen.SearchQuery = search; screen.QueryID = iable.Id.ToString(); List<TargetItem> items = new List<TargetItem>(); foreach (dynamic duo in api.FastSearch(search)) { items.Add(new TargetItem(duo)); } screen.Items = items; return View(screen); }
public HomeView(HomeScreen screen) { Screen = screen; }