示例#1
0
        public ActionResult SupercarSuperbikeBritain()
        {
            var destination = new Destination();
            var blError     = DestinationManager.GetDestinationForAlias("SupercarBritain", out destination);

            if (blError.ErrorCode != 0 || destination == null)
            {
                throw new ApplicationException(blError.ErrorMessage);
            }
            var model = new DomingoModelBase()
            {
                PageName = "Supercar & Superbike tours of Britain", Destination = destination
            };

            return(View(model));
        }
示例#2
0
        public ActionResult Tibet()
        {
            var destination = new Destination();
            var blError     = DestinationManager.GetDestinationForAlias("Tibet", out destination);

            if (blError.ErrorCode != 0 || destination == null)
            {
                throw new ApplicationException(blError.ErrorMessage);
            }
            var model = new DomingoModelBase()
            {
                PageName = "Tibet Trips", Destination = destination
            };

            return(View(model));
        }
        public ActionResult GoldenTriangle()
        {
            var destination = new Destination();
            var blError     = DestinationManager.GetDestinationForAlias("GoldenTriangle", out destination);

            if (blError.ErrorCode != 0 || destination == null)
            {
                throw new ApplicationException(blError.ErrorMessage);
            }
            // get all the tags for this destination
            List <View_TagDestination> tags;

            _GetTagsForDestination(destination, out blError, out tags);

            var model = new DomingoModelBase()
            {
                PageName = "Trips in the Golden Triangle", Destination = destination, DestinationTags = tags
            };

            return(View(model));
        }
示例#4
0
        public ActionResult ScottishIsles()
        {
            // get the destination object
            var destination = new Destination();
            var blError     = DestinationManager.GetDestinationForAlias("ScottishIsles", out destination);

            if (blError.ErrorCode != 0 || destination == null)
            {
                throw new ApplicationException(blError.ErrorMessage);
            }

            // get all the tags for this destination
            List <View_TagDestination> tags = null;

            _GetTagsForDestination(destination, out blError, out tags);
            var model = new DomingoModelBase()
            {
                PageName = "Trips to the Scottish Isles", Destination = destination, DestinationTags = tags
            };

            return(View(model));
        }