예제 #1
0
 public async Task <IEnumerable <People> > GetPeoplesByUf(EnumUf uf)
 {
     return(await _repository.GetPeoplesByUf(uf));
 }
예제 #2
0
 public async Task <IEnumerable <People> > GetPeoplesByUf(EnumUf uf)
 {
     return(await _context.Peoples.Where(p => p.Uf == uf).ToListAsync());
 }