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