public ActionResult Index(SearchViewModel model) { if (!String.IsNullOrEmpty(model.q)) model.Result = index.Search(model.q, model.f); return View(model); }
public ActionResult Index(SearchViewModel model) { if (!String.IsNullOrEmpty(model.q)) model.Results = indices.Select(index => index.Search(model.q)); return View(model); }