2
I have a PRODUCT registration form and there is a relationship with the SUPPLIER table, as shown in the image below:
Which click on the SEARCH VENDOR button will appear this View
Now I need to develop a text box that when typing a value it looks for all SUPPLIERS that contain a FANCY NAME as typed in the text box.
This Controller shows all vendors, but I only want the ones with FANCY NAME typed in the text box:
public ActionResult Index()
{
try
{
using (SistemaDBEntities db = new SistemaDBEntities())
{
return View(db.Fornecedor.Where(s => s.Ativo == true).ToList());
}
}
catch (Exception)
{
throw;
}
}
J.C. Galhard, you want each time you type in the text box to be searched or typed and then searched?
– Janderson Thomaz
Then I would research
– user31040