Beispiel #1
0
        public static ChildKinderGarden ToChildKinderGarden(ChildKinderGardenDto childKinderGardenDto)
        {
            ChildKinderGarden childKinderGarden = new ChildKinderGarden()
            {
                Id            = childKinderGardenDto.Id,
                ChildID       = childKinderGardenDto.ChildID,
                BeginYear     = childKinderGardenDto.BeginYear,
                EndYear       = childKinderGardenDto.EndYear,
                KindrGardenID = childKinderGardenDto.KindrGardenID
            };

            return(childKinderGarden);
        }
Beispiel #2
0
        public static ChildKinderGardenDto ToChildKinderGardenDto(ChildKinderGarden childKinderGarden)
        {
            ChildKinderGardenDto childKinderGardenDto = new ChildKinderGardenDto()
            {
                Id            = childKinderGarden.Id,
                ChildID       = childKinderGarden.ChildID.GetValueOrDefault(),
                BeginYear     = childKinderGarden.BeginYear.GetValueOrDefault(),
                EndYear       = childKinderGarden.EndYear.GetValueOrDefault(),
                KindrGardenID = childKinderGarden.KindrGardenID.GetValueOrDefault()
            };

            return(childKinderGardenDto);
        }