UserProfileRegistration MapFrom(BL_UserProfileRegistration usrProReg) { if (usrProReg == null) { return(null); } return(new UserProfileRegistration { PartnerDateOfBirth = usrProReg.PartnerDateOfBirth, PartnerEmail = usrProReg.PartnerEmail, PartnerFirstName = usrProReg.PartnerFirstName, PartnerGender = usrProReg.PartnerGender, PartnerLastName = usrProReg.PartnerLastName, PartnerMobilePhone = usrProReg.PartnerMobilePhone, UserProfile_Id = usrProReg.UserProfile_Id, }); }
public async Task SetUserProfileRegistrationAsync(BL_UserProfileRegistration bl_usrProReg) { var usrProReg = MapFrom(bl_usrProReg); //TODO: Ensure UserProfile Id exists var setUsrProReg = await _repo.SetUserProfileRegistrationAsync(usrProReg); }