// // GET: /Setting/ public ActionResult Index() { //BlogSettingManager.AddOrUpdate(); var blogSetting = new BlogSetting() { AllowContact = BlogSettingManager.AllowContact, AllowRegister = BlogSettingManager.AllowRegister, Description = BlogSettingManager.Description, Footer = BlogSettingManager.Footer, ThankMessage = BlogSettingManager.ThankMessage, Title = BlogSettingManager.Title }; return View(blogSetting); }
public ActionResult Index(BlogSetting model) { BlogSettingManager.AddOrUpdate(model); return View(); }