public IPlace GetPlace(string placeName) { IPlace currentPlace = null; //Find a default place if (String.IsNullOrWhiteSpace(placeName)) { Response.Redirect("/existence"); } else { currentPlace = _dataCache.GetByName <IPlace>(placeName); } //Create one if (currentPlace == null) { currentPlace = DataAccess.DataFactory.Create <IPlace>(); currentPlace.Name = placeName; currentPlace.SetAccessors(_data, _dataCache, _logger); currentPlace.Create(); } return(currentPlace); }