Beispiel #1
0
 public ActionResult EditNews(InputNewsViewModel model)
 {
     this.news.UpdateNews(this.Mapper.Map <News>(model));
     this.TempData["EditNews"] = "News edited successfully!";
     return(this.RedirectToAction("Index", "Building"));
 }
Beispiel #2
0
 public ActionResult EditNews(InputNewsViewModel model)
 {
     this.news.UpdateNews(this.Mapper.Map<News>(model));
     this.TempData["EditNews"] = "News edited successfully!";
     return this.RedirectToAction("Index", "Building");
 }