Пример #1
0
        public async Task <List <Classroom> > getAllAsync()
        {
            var listModel = new List <Classroom>();
            var models    = await _repository.GetAllAsync();

            foreach (var item in models)
            {
                listModel.Add(item);
            }

            return(listModel);
        }