@model CartWise.Web.ViewModels.Product.ProductSearchViewModel
@{
ViewData["Title"] = "Search products";
}
Search products
@if (!string.IsNullOrWhiteSpace(Model.Query) && Model.Results.Count == 0)
{
No products matched "@Model.Query".
}
else if (Model.Results.Count > 0)
{
@foreach (var result in Model.Results)
{
-
@result.Name
@if (!string.IsNullOrEmpty(result.BrandName))
{
— @result.BrandName
}
@if (!string.IsNullOrEmpty(result.PackageDisplay))
{
(@result.PackageDisplay)
}
}
}