public ActionResult GVille(RegisterViewModel model) { VilleService villeService = new VilleService(new EnglishBattle.data.EnglishBattleEntities()); List <Ville> ville = villeService.GetVilleList(); return(View()); }
protected void Page_Init(object sender, EventArgs e) { if (Request.IsAuthenticated) { Response.Redirect("Default.aspx", true); Context.ApplicationInstance.CompleteRequest(); } _joueurService = new JoueurService(); _villeService = new VilleService(); }
public RegionService(DemandeALutilisateur demandealutilisateur, DepartementService departementServices, VilleService communeService) { this._DemandeALutilisateur = demandealutilisateur; this._departementServices = departementServices; this._VilleService = communeService; }