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