コード例 #1
0
        public RecordCheckItemModel UpdateRecordCheckItem(RecordCheckItemModel cplnRIRelRecordCheckItem)
        {
            RecordCheckItemModel   result           = null;
            lnRIRelRecordCheckItem _recordCheckItem = null;

            try
            {
                _recordCheckItem = Mapper.Map <lnRIRelRecordCheckItem>(cplnRIRelRecordCheckItem);
                _recordCheckItem.Update();
                result = Mapper.Map <RecordCheckItemModel>(_recordCheckItem);
            }
            catch (Exception ex)
            {
                LogHelper.Error <lnRIRelRecordCheckItemDataProvider>("Update lnRIRelRecordCheckItem Failed! \n", ex);
            }
            return(result);
        }
コード例 #2
0
        public RecordCheckItemModel AddRecordCheckItem(RecordCheckItemModel cplnRIRelRecordCheckItem)
        {
            RecordCheckItemModel   result           = null;
            lnRIRelRecordCheckItem _recodeCheckItem = null;

            try
            {
                _recodeCheckItem = Mapper.Map <lnRIRelRecordCheckItem>(cplnRIRelRecordCheckItem);
                var Id = Convert.ToInt64(_recodeCheckItem.Insert());
                result = cplnRIRelRecordCheckItem;
            }
            catch (Exception ex)
            {
                LogHelper.Error <lnRIRelRecordCheckItemDataProvider>("Add lnRIRelRecordCheckItem Failed! \n", ex);
            }
            return(result);
        }