Example #1
0
        public List <ArmyModelBLL> ArmyModelsFindByFactionID(int ArmyID, int FactionID, int Skip, int Take)
        {        //we use this to create a list of models we can add to our army. this is a mix of ArmyModel and
            // models tables including QTY of models in army and how many full squats.
            List <ArmyModelBLL> ReturnValue = new List <ArmyModelBLL>();
            List <ArmyModelDAL> items       = _context.ArmyModelsFindByFactionID(ArmyID, FactionID, Skip, Take);

            foreach (ArmyModelDAL item in items)
            {            // adding info to the list by feeding DAL to BLL constructor
                ArmyModelBLL NewItem = new ArmyModelBLL(item);
                ReturnValue.Add(NewItem);
            }
            return(ReturnValue);
        }