Example #1
0
 //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);
 }
Example #2
0
 public HomeView(HomeScreen screen)
 {
     Screen = screen;
 }