public async Task <IEnumerable <PracticeDto> > GetPractices() { //var filter = Builders<Practice>.Filter.AnyEq("DoctorAvaliable", new ObjectId ( "5bc8f2c21c9d440000a98282" )); //var result = await _context.PracticeCollection // .Find(filter) // .ToListAsync(); practiceDtoList.Clear(); var result = await _context.PracticeCollection .Find(_ => true).ToListAsync(); foreach (var _practice in result) { practiceDtoList.Add(DtoCreator.CreatePracticeDto(_practice)); } return(practiceDtoList); }