示例#1
0
        public static YearEntry ConvertYearEntryEntityToYearEntryBusinessObject(Data.Entities.YearEntry yearEntryEntity)
        {
            var yearEntry = new YearEntry();

            yearEntry.Year         = yearEntryEntity.Year;
            yearEntry.NumberInYear = yearEntryEntity.NumberInYear;
            yearEntry.RankInYear   = yearEntryEntity.RankInYear;

            return(yearEntry);
        }
示例#2
0
        public static Data.Entities.YearEntry ConvertYearEntryBusinessObjectToEntity(Application.UseCases.BabyNames.YearEntry yearEntryBo)
        {
            var yearEntryEntity = new Data.Entities.YearEntry();

            yearEntryEntity.Year         = yearEntryBo.Year;
            yearEntryEntity.NumberInYear = yearEntryBo.NumberInYear;
            yearEntryEntity.RankInYear   = yearEntryBo.RankInYear;

            return(yearEntryEntity);
        }