Пример #1
0
        public bool SaveToRepo(Restaurant r)
        {
            try
            {
                _Client.Index(r);
                return true;
            }

            catch
            {
                return false;
            }
        }
Пример #2
0
 public ActionResult SaveNewRestaurant(Restaurant r)
 {
     return Json(_searchService.AddToIndex(r));
 }
Пример #3
0
 public bool AddToIndex (Restaurant r)
 {
     return _repo.SaveToRepo(r);
 }