Ejemplo n.º 1
0
        public bool SaveToRepo(Restaurant r)
        {
            try
            {
                _Client.Index(r);
                return true;
            }

            catch
            {
                return false;
            }
        }
Ejemplo n.º 2
0
 public ActionResult SaveNewRestaurant(Restaurant r)
 {
     return Json(_searchService.AddToIndex(r));
 }
Ejemplo n.º 3
0
 public bool AddToIndex (Restaurant r)
 {
     return _repo.SaveToRepo(r);
 }