public ActionResult Search(FormCollection collection)
        {
            List <PLC.Restaurant> restaurants = new List <PLC.Restaurant>();

            try
            {
                if (func == null)
                {
                    func = new PLC.Functionality();
                }

                restaurants = func.SearchRestaurantsByName(collection[0]);
            }
            catch (Exception ex)
            {
                logger.Error(ex.Message);
            }

            return(View("Index", restaurants));
        }
 // Returns a list of all restaurants that matched the search string
 public List <Restaurant> Search(string searchString)
 {
     return(func.SearchRestaurantsByName(searchString));
 }