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);
        }
        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);
        }