Exemplo n.º 1
0
        public ActionResult AddReview(Bar bar)
        {
            var needbar = BarLogic.SearchBarByItemLogic(bar.BarName);

            return(View(new Review {
                Bar = needbar
            }));
        }
Exemplo n.º 2
0
 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"));
     }
 }