Пример #1
0
        public ActionResult Index()
        {
            var model = new PageViewModel();
            model.View = "Disclaimer";
            model.Title = "Disclaimer";

            return View("StandardPageLayout", model);
        }
Пример #2
0
        public ActionResult Index()
        {
            var model = new PageViewModel();
            model.View = "PrivacyPolicy";
            model.Title = "Privacy Policy";

            return View("StandardPageLayout", model);
        }
Пример #3
0
        public ActionResult Index()
        {
            var model = new PageViewModel();
            model.View = "Investors";
            model.Title = "Investors";
            model.SelectedNavigation = "Investors";

            return View("StandardPageLayout", model);
        }
Пример #4
0
        public ActionResult Index()
        {
            var model = new PageViewModel();
            model.View = "Home";
            model.Title = "Castlerock Property";
            model.SelectedNavigation = "Home";

            return View("StandardPageLayout", model);
        }
Пример #5
0
        public ActionResult Index()
        {
            var model = new PageViewModel();
            model.View = "AustralianMap";
            model.Title = "Properties";
            model.SelectedNavigation = "Properties";
            model.Model = new PropertyPageViewModel();

            return View("StandardPageLayout", model);
        }
Пример #6
0
        public ActionResult Index()
        {
            var model = new PageViewModel();
            model.View = "Experience";
            model.Title = "Experience";
            model.SelectedNavigation = "Experience";
            model.Model = this.GetProperties(ServiceLocator.GetPropertyService().GetManagedProperties());

            return View("StandardPageLayout", model);
        }
Пример #7
0
        public ActionResult Show(int propertyId, string propertyName)
        {
            PropertyPageViewModel propertyModel = new PropertyPageViewModel();

            var property = ServiceLocator.GetPropertyService().GetPropertyById(propertyId);

            var properties = ServiceLocator.GetPropertyService().GetProperties(property.State);

            propertyModel.CompleteProperties = properties.ToList().FindAll(o => o.IsComplete);
            propertyModel.InCompleteProperties = properties.ToList().FindAll(o => !o.IsComplete);
            propertyModel.State = property.State.ToString();
            propertyModel.Property = property;

            var model = new PageViewModel();
            model.View = "Property";
            model.Title = "Properties";
            model.SelectedNavigation = "Properties";
            model.Model = propertyModel;

            return View("StandardPageLayout", model);
        }
Пример #8
0
        public ActionResult State(State state)
        {
            PropertyPageViewModel propertyModel = new PropertyPageViewModel();

            var properties = ServiceLocator.GetPropertyService().GetProperties(state);

            propertyModel.CompleteProperties = properties.ToList().FindAll(o => o.IsComplete);
            propertyModel.InCompleteProperties = properties.ToList().FindAll(o => !o.IsComplete);
            propertyModel.State = state.ToString();

            if (this.Request.IsAjaxRequest())
            {
                return this.PartialView("PropertiesInState", propertyModel);
            }

            var model = new PageViewModel();
            model.View = "AustralianMap";
            model.Title = "Properties";
            model.SelectedNavigation = "Properties";
            model.Model = propertyModel;

            return View("StandardPageLayout", model);
        }