예제 #1
0
 internal static void MakeBasicContractUserForCache(contract.User user, model.User eUser)
 {
     user.Email        = eUser.Email;
     user.Name         = eUser.Name;
     user.UserID       = eUser.UserID;
     user.MobileNumber = utility.Security.Decrypt(eUser.MobileNumber);
 }
예제 #2
0
        internal static void FillEntityUser(model.User ReUser, contract.User userInst)
        {
            ReUser.Name         = userInst.Name;
            ReUser.Email        = userInst.Email;
            ReUser.MobileNumber = utility.Security.Encrypt(userInst.MobileNumber);

            ReUser.FBAuthID = userInst.FBAuthID;
            ReUser.FBID     = userInst.FBID;

            if (userInst.LiveDetails != null)
            {
                ReUser.LiveID = userInst.LiveDetails.LiveID;
            }
        }