public ActionResult Browse(string searchtext) { BrowseModel browseData = new BrowseModel(); browseData.profiles = _usersRepository.findProfilesByName(searchtext); browseData.countries = reader.getCountries(); return View(browseData); }
// GET: BrowseProfiles public ActionResult Browse() { BrowseModel browseData = new BrowseModel(); browseData.profiles = _usersRepository.fetchProfiles(); browseData.countries = reader.getCountries(); return View(browseData); }