public JediContainer(JediModels jedi)
 {
     Jedi = jedi;
 }
Esempio n. 2
0
 public JediContainer(JediModels jedi)
 {
     Jedi = jedi;
 }
        public ActionResult End(int idJedi, int bank, bool win)
        {
            ServiceJediClient service = new ServiceJediClient();

            TournoiEnd tournoiEnd = new TournoiEnd();
            string str;
            if (win)
            {
                str = "Vous avez bien parie sur ce dernier match ! Felicitation ! ";
            }
            else
            {
                str = "Vous avez mal parie sur ce dernier match ";
            }

            JediModels jedi = new JediModels(service.getAllJedi().ToList().Find(x => x.Id == idJedi));

            tournoiEnd.Bank = bank;
            tournoiEnd.JediGagnant = jedi.Nom;
            tournoiEnd.MessageEnd = str;

            return View(tournoiEnd);
        }