Ejemplo n.º 1
0
 public DisplayWarModel(int id, HouseModel firstHouse, HouseModel secondHouse, int winner, List <FightModel> fights)
 {
     ID          = id;
     FirstHouse  = firstHouse;
     SecondHouse = secondHouse;
     ID_Winner   = winner;
     Fights      = fights;
 }
Ejemplo n.º 2
0
        public WarModel(WarDTO warDTO)
        {
            Fights = new List <FightModel>();

            ID             = warDTO.ID;
            FirstHouse     = new HouseModel(warDTO.FirstHouse);
            SecondHouse    = new HouseModel(warDTO.SecondHouse);
            ID_WinnerHouse = warDTO.ID_WinnerHouse;

            foreach (FightDTO fight in warDTO.Fights)
            {
                Fights.Add(new FightModel(fight));
            }
        }