Нужно осуществить поиск в веб-клиенте базы данных

Есть веб-клиент базы данных Не могу сделать так, чтобы работал Search

    <from a asp-action="Index" method="get">
<div class="from-group">
    <label for="SearchString"> Введите слово для поиска </label>
    <input type="text" class="from-group" name="SearchString"
           value="@ViewData["CurrentFilter"] "/>
    <input type="submit" value="Search" class="btn-primary" />
</div>

Еще есть вот такое

    public async Task<IActionResult> Index(string SearchString)
    {
        //return View(await _context.Incident.ToListAsync());
        ViewData["CurrentFilter"] = SearchString;
        var incident = from b in _context.Incident
                       select b;
        if (!String.IsNullOrEmpty(SearchString))
        {
            incident = incident.Where(b => b.Context_Incident.Contains(SearchString));

        }
        return View( incident);
    }

Ответы (0 шт):