コード例 #1
0
ファイル: UserProfileCache.cs プロジェクト: MulderFox/Main
        public static bool Update(DefaultContext db, CheckBillingInformation checkBillingInformation, out UserProfile userProfile)
        {
            userProfile = null;

            UserProfile dbUserProfile = GetDetail(db, checkBillingInformation.UserId);
            if (dbUserProfile == null)
                return false;

            dbUserProfile.CopyFrom(checkBillingInformation);
            db.SaveChanges();

            userProfile = dbUserProfile;

            return true;
        }
コード例 #2
0
ファイル: UserProfile.cs プロジェクト: MulderFox/Main
 public void CopyFrom(CheckBillingInformation checkBillingInformation)
 {
     FirstName = checkBillingInformation.FirstName;
     LastName = checkBillingInformation.LastName;
     Address = checkBillingInformation.Address;
     City = checkBillingInformation.City;
     PSC = checkBillingInformation.PSC;
     DIC = checkBillingInformation.DIC;
     ICO = checkBillingInformation.ICO;
 }