My Perspective:
@using (Html.BeginForm())
{
<p id="a">
Search for VCMEMBRE/VCPARENT: @Html.TextBox("SearchString")
<input type="submit" name="searchType" value="Find!" />
</p>
}
My Handler:
public ActionResult Index(string searchString)
{
if (!String.IsNullOrEmpty(searchString))
{
axeModel.trcubezonequotas = db.TRCUBEZONEQUOTAS.Where(
(s =>
s.VCMEMBRE.ToLower().Contains(searchString.ToLower())
|| s.VCPARENT.ToLower().Contains(searchString.ToLower())
)
);
return View(axeModel);
}