Beispiel #1
0
        public void Remove(CashEntry cashEntry)
        {
            if (cashEntry == null)
            {
                throw new ArgumentNullException();
            }

            _repository.Delete(_mapper.Map <DTO.CashEntry>(cashEntry));
        }
Beispiel #2
0
        public void Add(CashEntry cashEntry)
        {
            if (cashEntry == null)
            {
                throw new ArgumentNullException();
            }

            _repository.Insert(_mapper.Map <DTO.CashEntry>(cashEntry));
        }
Beispiel #3
0
        public CashEntry Update(CashEntry cashEntry)
        {
            if (cashEntry == null)
            {
                throw new ArgumentNullException();
            }

            var item = _repository.Update(_mapper.Map <DTO.CashEntry>(cashEntry));

            return(_mapper.Map <CashEntry>(item));
        }