[Authorize] // GET: Avis public ActionResult LaisserUnAvis(string nomSeo) { if (!string.IsNullOrWhiteSpace(nomSeo)) { var avis = new LaissezUnAvisViewModel(nomSeo); if (avis.Formation != null) { return(View(avis)); } return(RedirectToAction("Index", "Home")); } return(RedirectToAction("Index", "Home")); }
private bool EstAutoriseACommenter(Avis.Data.Avis avisSave) { var avisManager = new LaissezUnAvisViewModel(); return(avisManager.EstAutoriserAcommenter(avisSave)); }