Ejemplo n.º 1
0
 private static void ConvertCommonMinimal(CommonOldV2 common, ITVTNamesBasic names, ITVTDatabase database)
 {
     names.GenerateGuid();
     names.OldId         = common.id.ToString();
     names.TitleDE       = HttpUtility.HtmlDecode(common.title);;
     names.TitleEN       = common.titleEnglish;
     names.DescriptionDE = common.description;
     names.DescriptionEN = common.descriptionEnglish;
 }
Ejemplo n.º 2
0
        private static void ConvertCommon(CommonOldV2 common, ITVTNames names, ITVTDatabase database, bool flipFake = false)
        {
            ConvertCommonMinimal(common, names, database);
            if (flipFake)
            {
                names.FakeTitleDE = common.title != null?common.title.Trim() : null;

                names.FakeTitleEN = common.titleEnglish != null?common.titleEnglish.Trim() : null;

                names.TitleDE = common.titleFake != null?common.titleFake.Trim() : null;

                names.TitleEN = common.titleEnglishFake != null?common.titleEnglishFake.Trim() : null;
            }
            else
            {
                names.FakeTitleDE = common.titleFake != null?common.titleFake.Trim() : null;

                names.FakeTitleEN = common.titleEnglishFake != null?common.titleEnglishFake.Trim() : null;
            }
        }