示例#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));
        }