NerdDinner.Controllers.SearchController.SearchByPlaceNameOrZip C# (CSharp) Method

SearchByPlaceNameOrZip() private method

private SearchByPlaceNameOrZip ( string placeOrZip ) : System.Web.Mvc.ActionResult
placeOrZip string
return 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));
        }