Пример #1
0
        public IHttpActionResult GetSettings()
        {
            var setting = service.GetAboutSettings();

            if (setting == null)
            {
                return(NotFound());
            }


            return(Ok(setting));
        }
Пример #2
0
        // GET: About
        public ActionResult Index()
        {
            var model = service.GetAboutSettings();
            var vm    = new AboutContentViewModel();

            if (model != null)
            {
                vm.Content = model.Content;
            }

            return(View(vm));
        }
Пример #3
0
        // GET: Admin/About
        public ActionResult Index()
        {
            var instance = aboutService.GetAboutSettings();

            return(View(instance));
        }