public ActionResult AddReview(Bar bar) { var needbar = BarLogic.SearchBarByItemLogic(bar.BarName); return(View(new Review { Bar = needbar })); }
public ActionResult BarListByItem(string SearchBar) { if (SearchBar != "") { var CurrentBar = BarLogic.SearchBarByItemLogic(SearchBar); if (CurrentBar != null) { return(View("BarDetails", CurrentBar)); } else { return(View("Index")); } } else { return(View("Index")); } }