public ActionResult Create([Bind(Include = "id,Nom,Prenom,Email,CIN,sexe,DateNaissance,LieuNaissance,Nationalite,SecondeNationalite,Matricule,NbrEnfants")] Agent agent) { if (ModelState.IsValid) { _agentService.Add(agent); _agentService.Commit(); //db.Agent.Add(agent); //db.SaveChanges(); return(RedirectToAction("Index")); } return(View(agent)); }