コード例 #1
0
ファイル: ContextBLL.cs プロジェクト: sosdesos/ArmyBuilder
        public List <ArmyBLL> ArmiesGetAll(int skip, int take)
        {        // skip take are for future paging functionality
            List <ArmyBLL> ReturnValue = new List <ArmyBLL>();
            List <ArmyDAL> items       = _context.ArmiesGetAll(skip, take);

            foreach (ArmyDAL item in items)
            {            // using a loop and the constructor to transfer info up.
                ArmyBLL NewItem = new ArmyBLL(item);
                ReturnValue.Add(NewItem);
            }
            return(ReturnValue);
        }