public ActionResult ApresDescription(int idElement) { Tools.Logger.Ecrire(Tools.Logger.Niveau.Info, string.Format("apresDescription.UserQuestionnaire.Entrée(idElement : {0})", idElement)); ViewModelUserQuestionnaire model = new ViewModelUserQuestionnaire(); try { var element = DALElement.FindById(idElement); Elements descriptionApres = DALElement.SelectElementApresDescription(element); Elements elementApres = DALElement.elementOrdreApres(element); if (elementApres.Id == DALSession.element.Id || descriptionApres.Id == DALSession.element.Id) { return(RedirectToAction("RetourElementEnCours", "UserQuestionnaire")); } else { model.element = descriptionApres; model.imagesUp = DALMedia.SelectAllFromElement(descriptionApres.Id); model.imagesDown = DALMedia.SelectAllFromElementDown(descriptionApres.Id); } Tools.Logger.Ecrire(Tools.Logger.Niveau.Info, string.Format("apresDescription.UserQuestionnaire.Sortie(idElement description Apres: {0})", descriptionApres.Id)); } catch (Exception e) { Tools.Logger.Ecrire(Tools.Logger.Niveau.Erreur, string.Format("apresDescription.UserQuestionnaire.Excpetion(Exception : {0})", e)); ViewBag.Error = ErrorList.apresDescription; } return(View(model)); }