public void Add(Check check) { Check alReadyExistingCheck = _checkRepository.GetCheckByNumber(check.CheckNumber); if (alReadyExistingCheck != null & alReadyExistingCheck.Bank.Id == check.Id) { throw new Exception("Check with this Number already exists"); } _checkRepository.Add(check); }