The application has tabs: All, Computers, Telephones
The product search should depend on the given tab, that is if we browse the phone tab, only the phones should show us when searching.
Classes:
Product:
public int Id {get; set; }
public string Name {get; set; }
public decimal Price {get; set; }
public int CategoryId {get; set; }
Category:
public int Id {get; set; }
public string Name {get; set; }
View:
@using (Html.BeginForm ("Index", "Product", FormMethod.Get, null))
{
div class="input-group"
input id="search" type="search" class="form-control" name="search"
placeholder= "Search ...">
button class="btn btn-default">Search button>
div>
}