public ActionResult Index(SiteSettingIndexModel request) { SiteSettingModelFactory siteSettingModelFactory = new SiteSettingModelFactory(); SiteSettingIndexModel model = ModelState.IsValid ? siteSettingModelFactory.CreateOrUpdate(request) : siteSettingModelFactory.LoadIndex(request.LanguageID); return CheckViewModel(model); }
public ActionResult Index(long? languageID) { SiteSettingModelFactory siteSettingModelFactory = new SiteSettingModelFactory(); SiteSettingIndexModel model = siteSettingModelFactory.LoadIndex(languageID); return View(model); }