private async Task <bool> BeanCanBeDeleted(int beanid) { var hasHoldings = await _holdingRepository.BeanHasHoldingsAsync(beanid); var hasMovements = await _movementReposotory.BeanHasMovementsAsync(beanid); var hasOffers = await _offerRepository.BeanHasOffersAsync(beanid); var hasSales = await _saleRepository.BeanHasSalesAsync(beanid); return(Tools.Any(hasHoldings, hasMovements, hasOffers, hasSales) == false); }
public async Task <bool> BeanHasMovementsAsync(int beanid) => await _movementRepository.BeanHasMovementsAsync(beanid);