Пример #1
0
        public IActionResult Index([FromServices] ArticlesRepository articlesRep, string searchBy)
        {
            var articles = articlesRep.GetArticlesByTitleAndTag(searchBy);

            ViewBag.SearchBy = searchBy;

            return(View(articles));
        }