예제 #1
0
        public IActionResult Index(NeighborhoodViewModel model)
        {
            IList <Neighborhood> neighborhoods = _neighborhoodDAL.GetNeighborhoodNames();

            model.Neighborhoods = neighborhoods;

            return(View(model));
        }
        public IActionResult Neighborhoods(NeighborhoodViewModel model)
        {
            if (TempData.ContainsKey(NewReviewResultKey))
            {
                model.NewReviewResult = TempData[NewReviewResultKey] as string;
            }

            IList <Neighborhood> neighborhoods = _neighborhoodDAL.GetNeighborhoodNames();

            model.Neighborhoods = neighborhoods;

            return(View(model));
        }