public async Task <PetShop[]> GetAllPetShops() { var result = await _petShop.GetAllPetShops(); if (result.Equals(null)) { throw new DataNotFoundException("Não foram encontrados PetShops cadastrados."); } else { return(result); } }
public async Task <PetShop[]> GetAllPetShops() { var result = await _petShop.GetAllPetShops(); if (result.Equals(null)) { throw new DataNotFoundException("Não foram encontrados PetShops cadastrados."); } else { return(result); } }