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