public void Remove(CashEntry cashEntry) { if (cashEntry == null) { throw new ArgumentNullException(); } _repository.Delete(_mapper.Map <DTO.CashEntry>(cashEntry)); }
public void Add(CashEntry cashEntry) { if (cashEntry == null) { throw new ArgumentNullException(); } _repository.Insert(_mapper.Map <DTO.CashEntry>(cashEntry)); }
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)); }