public ActionResult ClosestRestaurants(double? latitude, double? longitude)
        {
            IEnumerable<RestaurantMapViewModel> restaurants = null;

            if (latitude != null && longitude != null)
            {
                restaurants = this.restaurants.GetClosest((double)latitude, (double)longitude, 1).To<RestaurantMapViewModel>().ToList();

                if (restaurants == null)
                {
                    return this.RedirectToAction("Index");
                }

                return this.PartialView("~/Views/GoogleMaps/_GoogleMapsListRestaurantsPartial.cshtml", restaurants);
            }

            return this.Redirect("/");
        }
 public CategoryController(ICategoryService categories, IRestaurantUserService restaurants)
 {
     this.categories = categories;
     this.restaurants = restaurants;
 }
 public RestaurantFilterController(IRestaurantUserService restaurants, ICategoryService categories)
 {
     this.restaurants = restaurants;
     this.categories = categories;
 }
 public CategoryController(ICategoryService categories, IRestaurantUserService restaurants)
 {
     this.categories  = categories;
     this.restaurants = restaurants;
 }
 public RestaurantController(IRestaurantUserService restaurants, ICommentService comments)
 {
     this.restaurants = restaurants;
     this.comments = comments;
 }
 public EventController(IRestaurantUserService restaurants, IEventService events)
 {
     this.restaurants = restaurants;
     this.events = events;
 }