public void Delete(int Id) { string userName = _meetingsRepository.GetById(Id).UserName; if (_meetingsRepository.GetById(Id).Status == Meeting.StatusTypes.Paid) { _moneyRepository.AddMoney(userName, _meetingsRepository.GetById(Id).Price); } _meetingsRepository.DeleteById(Id); }