Beispiel #1
0
        public PrintStringSettingDTO AddOrUpdate
            (PrintStringSettingDTO printStringSettingDTO)
        {
            PrintStringSetting printStringSetting =
                mapper.Map <PrintStringSetting>(printStringSettingDTO);

            if (printStringSetting != null)
            {
                printStringSettingDTO = mapper.Map <PrintStringSettingDTO>
                                            (printStringSettingRepository.AddOrUpdatePrintStringSetting
                                                (printStringSetting));
            }
            return(printStringSettingDTO);
        }
Beispiel #2
0
        public bool RemovePrintStringSettingDTO
            (PrintStringSettingDTO printStringSettingDTO)
        {
            bool result;

            try
            {
                printStringSettingRepository.RemovePrintStringSetting
                    (mapper.Map <PrintStringSetting>(printStringSettingDTO));
                result = true;
            }
            catch
            {
                result = false;
            }
            return(result);
        }