public async Task <bool> IsRegisteredAsync(string farmName) { var foundFarm = await _farmRepository.GetByAsync(farmName); if (foundFarm == null) { return(false); } return(true); }