Example #1
0
        public List <ScrimTypeModel> GetScrimTypeModels()
        {
            List <ScrimTypeModel> models = new List <ScrimTypeModel>();

            using (ReferenceDataRepository repo = new ReferenceDataRepository())
            {
                IEnumerable <TPO.DL.Models.ScrimType> entities = repo.GetScrimTypes();
                for (int i = 0; i < entities.Count(); i++)
                {
                    models.Add(Bind(entities.ElementAt(i), new ScrimTypeModel()));
                }
            }
            return(models);
        }