public static long AddBirth(Dto.BirthDto b) { try { return(Dal.BirthDal.AddBirth(converterEF.BirthConverters.ToDalBirth(b))); } catch { throw; } }
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); }