//MISE A JOUR DUN COMPTE ABONNE public ActionResult UpdateAbonne() { //RECUPERER LE id USER CONNECTE ACTUELLEMENT DEPUIS IDENTITY string userID = System.Web.HttpContext.Current.User.Identity.GetUserId(); //RECUPERER LE ABONNE OBJECT T_E_ABONNE_ABO user = WSModelAbonne.SearchUser(userID); //RECUPERER LES DICTIONNAIRES DE DONNES ListPays ListPays = WSModelHotel.getDefinitionPays(); ListIND ListIND = WSModelHotel.getDefinitionIND(); //RECUPERER LES DICTIONNAIRES DE DONNES // J'UTILISE LES VIEW DATA ET NON LE VIEW BAG PAR PREFERNCE DE LISIBILITE ViewData["PAY_ID"] = new SelectList(ListPays.Items, "PAY_ID", "PAY_NOM", user.PAY_ID); ViewData["IND_INDICATIF"] = new SelectList(ListIND.Items, "IND_INDICATIF", "IND_INDICATIF", user.IND_INDICATIF); ViewData["ABO_PSEUDO"] = user.ABO_PSEUDO; ViewData["ABO_MOTPASSE"] = user.ABO_MOTPASSE; ViewData["ABO_MEL"] = user.ABO_MEL; ViewData["ABO_NOM"] = user.ABO_NOM; ViewData["ABO_PRENOM"] = user.ABO_PRENOM; ViewData["ABO_ADRLIGNE1"] = user.ABO_ADRLIGNE1; ViewData["ABO_ADRLIGNE2"] = user.ABO_ADRLIGNE2; ViewData["ABO_CP"] = user.ABO_CP; ViewData["ABO_VILLE"] = user.ABO_VILLE; ViewData["ABO_ETAT"] = user.ABO_ETAT; ViewData["ABO_TEL"] = user.ABO_TEL; ViewData["ABO_AEROPORT"] = user.ABO_AEROPORT; // LANCER LA VUE return(View()); }
public ActionResult RegisterAbonne() { ListPays ListPays = WSModelHotel.getDefinitionPays(); ListIND ListIND = WSModelHotel.getDefinitionIND(); ViewData["PAY_ID"] = new SelectList(ListPays.Items, "PAY_ID", "PAY_NOM", 1); ViewData["IND_INDICATIF"] = new SelectList(ListIND.Items, "IND_INDICATIF", "IND_INDICATIF", 1); return(View()); }
//CREER UN NOUVEL HOTEL: VUE public ActionResult CreerHotel() { ListPrix ListPrix = WSModel.getDefinitionPrixIndicatif(); ListPays ListPays = WSModel.getDefinitionPays(); ListIND ListIND = WSModel.getDefinitionIND(); ListEtoiles ListeEtoiles = WSModel.getDefinitionEtoiles(); ViewData["PAY_ID"] = new SelectList(ListPays.Items, "PAY_ID", "PAY_NOM", 1); ViewData["IND_INDICATIF"] = new SelectList(ListIND.Items, "IND_INDICATIF", "IND_INDICATIF", 1); ViewData["CAT_NBETOILES"] = new SelectList(ListeEtoiles.Items, "CAT_NBETOILES", "CAT_NBETOILES", 1); ViewData["PRX_ID"] = new SelectList(ListPrix.Items, "PRX_ID", "PRX_FOURCHETTE", 1); return(View()); }