public ActionResult Kids() { ViewBag.Title = "Apparel for Kids"; CustomerBLL obj = new CustomerBLL(); List<Apparel> model = new List<Apparel>(); model = obj.GetProductByCategory("Kids"); return View(model); }
public ActionResult SearchByCategory(string val) { CustomerBLL obj = new CustomerBLL(); List<Apparel> listApparel = obj.GetProductByCategory(val); //ViewBag.Message = listApparel[0].ApparelName; string msg = "0"; if (listApparel.Count > 0) msg = listApparel[0].ApparelName; return PartialView("_apparelDetailsTable", listApparel); }