Esempio n. 1
0
 public ActionResult EditTwitterKeys(TwitterKeysEditViewModel model)
 {
     _service.SaveTwitterKeys(model.TwitterKeys);
     TempData["message"] = "Twitter keys have been set";
     return RedirectToAction("EditTwitterKeys",  new { id = model.NavigationModel.Page.PageNavigation.Id });
 }
Esempio n. 2
0
 public ActionResult EditTwitterKeys(int id)
 {
     var model = new TwitterKeysEditViewModel { TwitterKeys = _service.GetTwitterKeys() };
     model.NavigationModel = HomeIndexViewModelLoader.Create(id, _service);
     return View(model);
 }