示例#1
0
        public static Account RegisterModelToModel(RegisterModel model)
        {
            if (model == null)
            {
                return(null);
            }

            var account = new Account
            {
                Status   = Vacation.common.Enums.UserStatus.Pending,
                UserName = model.Email,
                Email    = model.Email,
                Password = PasswordHelper.CreateDefaultPassword(7)
            };

            return(account);
        }