Beispiel #1
0
 public List <UserAgent> Find(string search)
 {
     return(_internalRepository.Find(search));
 }
Beispiel #2
0
        public ActionResult Index(string search = "")
        {
            var userAgents = string.IsNullOrWhiteSpace(search) ? _userAgentRepository.GetAll() : _userAgentRepository.Find(search);

            ViewBag.SearchString = search;
            return(View(userAgents));
        }