Пример #1
0
 //
 // 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);
 }
Пример #2
0
 public ActionResult Index(BlogSetting model)
 {
     BlogSettingManager.AddOrUpdate(model);
     return View();
 }