Exemplo n.º 1
0
 public ActionResult UpdateFede(int id, string nomFederation, int?Pays, string web)
 {
     nomFederation = HttpUtility.HtmlEncode(nomFederation);
     web           = HttpUtility.HtmlEncode(web);
     if (Pays != null && nomFederation != "")
     {
         Federation federation = new Federation();
         federation.UpdateFederation(id, nomFederation, Pays, web);
         return(Redirect("Index"));
     }
     else
     {
         return(Redirect("UpdateFederation/" + id + "/?error=Tous les champs doivent être complétés"));
     }
 }