public async Task <List <FinancialTransaction> > GetAllByGroup(int id) { var response = await _repo.GetAllByGroupAsync(id); if (!response.Any()) { throw new NoContentException("Nenhuma transação para este grupo"); } return(response); }
public async Task <List <FinancialTransaction> > GetAllByGroup(int id) { var response = await _repo.GetAllByGroupAsync(id); if (!response.Any()) { throw new NoContentException("Nenhuma transação para este grupo"); } return(response); }