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;
        }
        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;
        }
 public void InsertVoucherDetails(AnFVoucherDetail det)
 {
     _AnFVoucherDetailsRepository.AddEntity(det);
 }