/// <summary> /// Updates the user's VLCMemberProfile. /// </summary> /// <param name="profile">The member profile.</param> /// <returns>bool</returns> public static bool UpdateVlcProfile(VLCUserProfileContract profile) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.UpdateVlcMemberProfile(profile))); } }
/// <summary> /// Map SALTService VLCMemberProfile Contract to SAL Model /// </summary> /// <param name="vlcMemberProfileContract"></param> /// <returns></returns> public static VLCMemberProfileModel ToDomainObject(this VLCUserProfileContract vlcProfileContract) { if (vlcProfileContract == null) { return(null); } return(new VLCMemberProfileModel() { MemberID = vlcProfileContract.MemberID, EnrollmentStatus = vlcProfileContract.EnrollmentStatus, AdjustedGrossIncome = vlcProfileContract.AdjustedGrossIncome, GraduationDate = vlcProfileContract.GraduationDate, RepaymentStatus = vlcProfileContract.RepaymentStatus, FamilySize = vlcProfileContract.FamilySize, StateOfResidence = vlcProfileContract.StateOfResidence, TaxFilingStatus = vlcProfileContract.TaxFilingStatus }); }
/// <summary> /// Updates user's VLC profile. /// </summary> /// <param name="profile">The VLC Member Profile to update.</param> /// <returns></returns> public bool UpdateVlcMemberProfile(VLCUserProfileContract profile) { return(_userService.Resolve().UpdateVlcMemberProfile(profile.ToDomainObject <VLCUserProfileContract, VLCUserProfile>())); }