public ActionResult SupprimerNews(int id) { InfoNews info = InfoNews.ChargeInfo(id); info.deleteNews(id); return(RedirectToRoute(new { area = "", controller = "home", action = "index" })); }
public ActionResult Details(int idNews, int idAuthor) { Wrapper wrap = new Wrapper(); wrap.Anews = InfoNews.ChargeInfo(idNews); wrap.Auteur = Author.ChargeAuthor(idAuthor); return(View(wrap)); }
public ActionResult ModifierNews(int id) { InfoNews info = InfoNews.ChargeInfo(id); return(View(info)); }