예제 #1
0
        public ActionResult Index(SiteSettingIndexModel request)
        {
            SiteSettingModelFactory siteSettingModelFactory = new SiteSettingModelFactory();
            SiteSettingIndexModel model = ModelState.IsValid ? siteSettingModelFactory.CreateOrUpdate(request) : siteSettingModelFactory.LoadIndex(request.LanguageID);

            return CheckViewModel(model);
        }
예제 #2
0
        public ActionResult Index(long? languageID)
        {
            SiteSettingModelFactory siteSettingModelFactory = new SiteSettingModelFactory();
            SiteSettingIndexModel model = siteSettingModelFactory.LoadIndex(languageID);

            return View(model);
        }