NerdDinner.Controllers.SearchController.SearchByPlaceNameOrZip C# (CSharp) 메소드

SearchByPlaceNameOrZip() 개인적인 메소드

private SearchByPlaceNameOrZip ( string placeOrZip ) : System.Web.Mvc.ActionResult
placeOrZip string
리턴 System.Web.Mvc.ActionResult
        public ActionResult SearchByPlaceNameOrZip(string placeOrZip)
        {
            if (String.IsNullOrEmpty(placeOrZip)) return null; ;
            LatLong location = GeolocationService.PlaceOrZipToLatLong(placeOrZip);

            var dinners = dinnerRepository.
                            FindByLocation(location.Lat, location.Long).
                            OrderByDescending(p => p.EventDate);

            return View("Results", dinners.ToPagedList(1, 20));
        }