public ActionResult InscriptionConf(CUtilisateur account) { if (ModelState.IsValid) { if (account.Role == "Voising") { CVoising v = new CVoising(account); v.Generer(); } else if (account.Role == "Cuisinier") { CCuisinier c = new CCuisinier(account); c.Generer(); } ModelState.Clear(); ViewBag.Message = account.Nom + " " + account.Prenom + " Successfully Registered."; } return(View()); }
public void AjouterCuisinier(CCuisinier cuisinier) { bdd.T_Cuisinier.Add(cuisinier); bdd.SaveChanges(); }