Ejemplo n.º 1
0
        public ActionResult GetChoiceOfRestaurant(int?cityId, int?typeKit)
        {
            cityId  = 9;
            typeKit = 16;
            var view = new RestaurantViewModel()
            {
                City        = cityRepository.GetAllCity(),
                Country     = countryRepository.GetAllCountries(),
                TypeKitchen = ref_Types_Of_KitchenRepository.GetAllTypeOfKitchen()
            };
            List <Restaurants> restaurants = new List <Restaurants>();

            restaurants = restauntRepository.GetChoiceOfRestaurant(cityId, typeKit);
            if (restaurants != null)
            {
                return(View(restaurants));
            }
            return(View());
        }