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); }
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; } }