Ejemplo n.º 1
0
 public static long AddBirth(Dto.BirthDto b)
 {
     try
     {
         return(Dal.BirthDal.AddBirth(converterEF.BirthConverters.ToDalBirth(b)));
     }
     catch
     {
         throw;
     }
 }
Ejemplo n.º 2
0
        public static Dal.Birth ToDalBirth(Dto.BirthDto b)
        {
            Dal.Birth en = new Dal.Birth();
            en.BirthId         = b.BirthId;
            en.UserId          = b.UserId;
            en.BirthDateOfBaby = b.BirthDateOfBaby;
            en.BoyOrGirl       = b.BoyOrGirl;
            en.NumOfBabies     = b.NumOfBabies;

            return(en);
        }