Пример #1
0
 public static tblDescription DescriptionConvertDTOToTbl(DescriptionDTO objDescriptionDTO)
 {
     try
     {
         tblDescription tblDescription = new tblDescription();
         tblDescription.ID = objDescriptionDTO.ID;
         tblDescription.tblLanguageDescriptions = LanguageDescriptionConvert.LanguageDescriptionConvertDTOToTable(objDescriptionDTO.LanguageDescriptions);
         return(tblDescription);
     }
     catch
     {
         throw;
     }
 }
Пример #2
0
        public static tblDescription DescriptionConvertDTOToTbl(ICollection <LanguageValueDTO> listLanguageValueDTO)
        {
            try
            {
                tblDescription objtblDescription = new tblDescription();

                ICollection <tblLanguageDescription> objtblLanguageDescription = objtblDescription.tblLanguageDescriptions;
                LanguageDescriptionConvert.LanguageDescriptionConvertDTOToTable(listLanguageValueDTO, ref objtblLanguageDescription);
                return(objtblDescription);
            }
            catch
            {
                throw;
            }
        }
Пример #3
0
        public static void DescriptionConvertDTOToTbl(ICollection <LanguageValueDTO> listLanguageValueDTO, ref tblDescription objtblDescription)
        {
            try
            {
                if (objtblDescription == null)
                {
                    objtblDescription = new tblDescription();
                }

                ICollection <tblLanguageDescription> objtblLanguageDescription = objtblDescription.tblLanguageDescriptions;
                LanguageDescriptionConvert.LanguageDescriptionConvertDTOToTable(listLanguageValueDTO, ref objtblLanguageDescription);
            }
            catch
            {
                throw;
            }
        }