示例#1
0
        public ResultEntity <UserProfileEntity> Create(UserProfileEntity userprofileEntity)
        {
            var validationResult = new ResultEntity <UserProfileEntity>();

            userprofileEntity.PasswordHash = UtilityHelper.PasswordHash(userprofileEntity.PasswordHash);
            userprofileEntity.CreatedDate  = DateTime.Now;

            using (var userprofileDA = new UserProfileDA())
            {
                validationResult.Value = userprofileDA.Create(userprofileEntity);
            }

            return(validationResult);
        }