Ejemplo n.º 1
0
        public RIRecordModel AddRecord(RIRecordModel cplnRIRecord)
        {
            RIRecordModel result  = null;
            lnRIRecord    _record = null;

            try
            {
                _record = Mapper.Map <lnRIRecord>(cplnRIRecord);
                var recordId = Convert.ToInt64(_record.Insert());
                result = cplnRIRecord;
            }
            catch (Exception ex)
            {
                LogHelper.Error <lnRIRecordDataProvider>("Add lnRIRecord Failed! \n", ex);
            }
            return(result);
        }
Ejemplo n.º 2
0
        public RIRecordModel AddRecord(RIRecordModel _et1, LnRIRecordEntityModel _et2)
        {
            RIRecordModel    result = null;
            lnRIRecord       _r1    = null;
            lnRIRecordEntity _r2    = null;


            _r1 = Mapper.Map <lnRIRecord>(_et1);
            _r2 = Mapper.Map <lnRIRecordEntity>(_et2);

            _r1.Insert();
            _r2.Insert();

            result = _et1;

            return(result);
        }