erId" , "SellerName"); ["States"] = new SelectList (_dataManager.States.GetStates (), "StateId", "StateName"); ["Producers"] = new SelectList (_dataManager.Producers. GetProducers (), "ProducerId", "ProducerName");
View ();
}
[HttpPost] ActionResult About (string itemName)
{["SimpleSearchResults"] = _dataManager.Items.GetItems (). Where (x => x.ItemName.Contains (itemName));
ViewData ["Message"] = "Ласкаво просимо в електронний каталог меблів!";
ViewData ["Sellers"] = new SelectList (_dataManager.Sellers.GetSellers (), "SellerId", "SellerName"); ["States"] = new SelectList (_dataManager. States.GetStates (), "StateId", "StateName"); ["Producers"] = new SelectList (_dataManager.Producers.GetProducers (), "ProducerId", "ProducerName"); View ();
}
ActionResult About ()
{["Message"] = "Ласкаво просимо в електронний каталог меблів!";
ViewData ["Sellers"] = new SelectList (_dataManager.Sellers.GetSellers (), "SellerId", "SellerName"); ["States"] = new SelectList (_dataManager. States.GetStates (), "StateId", "StateName"); ["Producers"] = new SelectList (_dataManager.Producers.GetProducers (), "ProducerId", "ProducerName"); View ();
}
[HttpPost] ActionResult AboutExtended (string itemName, int producerid, int stateId)
{["Sellers"] = new SelectList (_dataManager.Sellers.GetSellers (), "SellerId", "SellerName"); ["States"] = new SelectList (_dataManager. States.GetStates (), "StateId", "StateName"); ["Producers"] = new SelectList (_dataManager.Producers.GetProducers (), "ProducerId", "ProducerName"); ["SimpleSearchResults" ;] =
_dataManager.Items.GetItems (). Where (x => x.ItemName.Contains (itemName) && x.States.StateId == stateId && x.Producers. ProducerId == producerid);
ViewData ["Message"] = "Ласкаво просимо в електронний каталог меблів!";
return View ();
}
ActionResult AboutExtended ()
{["Message"] = "Ласкаво просимо в електронний каталог меблів!";
ViewData ["Sellers"] = new SelectList (_dataManager.Sellers.GetSellers (), "SellerId", "SellerName"); ["States"] = new SelectList (_dataManager. States.GetStates (), "StateId", "StateName"); ["Producers"] = new SelectList (_dataManager.Producers.GetProducers (), "ProducerId", "ProducerName"); View ();
} ActionResult Item (int id)
{["Title"] = "Список товарів"; ["Items"] = _dataManager.Items.GetItemsNotSort ();. Model = _dataManager.Items.GetItem (id); View ();
}
}
<...