Exemple #1
0
        /// <summary>
        /// Add ganger
        /// </summary>
        /// <param name="ganger">Ganger</param>
        /// <returns>Added Ganger</returns>
        public Ganger AddGanger(Ganger ganger)
        {
            var gangerWithStats = CreateGanger(ganger.Name, ganger.GangerType);

            gangerWithStats.GangId = ganger.GangId;
            return(_gangerProvider.AddGanger(gangerWithStats));
        }
Exemple #2
0
        /// <summary>
        /// Add gang
        /// </summary>
        /// <param name="gang">Gang to add</param>
        /// <returns>Added gang</returns>
        public Gang AddGang(Gang gang)
        {
            var addedGang = _gangProvider.AddGang(gang);

            foreach (var ganger in addedGang.Gangers)
            {
                _gangerProvider.AddGanger(ganger);
            }

            InitialGangTerritories(addedGang.GangId);

            return(addedGang);
        }