コード例 #1
0
        public Operation DeleteDetail(AnFVoucherDetail obj)
        {
            Operation objOperation = new Operation { Success = true, OperationId = obj.Id };
            _voucherDetailRepository.Delete(obj);

            try
            {
                _unitOfWork.Commit();
            }
            catch (Exception)
            {

                objOperation.Success = false;
            }
            return objOperation;
        }
コード例 #2
0
        public Operation SaveDetail(AnFVoucherDetail obj)
        {
            Operation objOperation = new Operation { Success = true };

            long Id = _voucherDetailRepository.AddEntity(obj);
            objOperation.OperationId = Id;

            try
            {
                _unitOfWork.Commit();
            }
            catch (Exception ex)
            {
                objOperation.Success = false;
            }

            return objOperation;
        }
コード例 #3
0
 public void InsertVoucherDetails(AnFVoucherDetail det)
 {
     _AnFVoucherDetailsRepository.AddEntity(det);
 }