public async Task <PetShop> GetPetShopById(int id) { var result = await _petShop.GetPetShopById(id); if (result == null) { throw new DataNotFoundException($"Não foi encontrado um PetShop com o ID: {id}."); } else { return(result); } }
public async Task <PetShop> GetPetShopById(int id) { var result = await _petShop.GetPetShopById(id); if (result == null) { throw new DataNotFoundException($"Não foi encontrado um PetShop com o ID: {id}."); } else { return(result); } }