Ejemplo n.º 1
0
        private void CreateUserProfile(AspNetUser user)
        {
            var userProfile = new UserProfile
            {
                UserId    = user.Id,
                Email     = user.Email,
                CreatedOn = DateTime.Now,
                CreatedBy = "REGISTRATION_PROCESS"
            };

            _dbWrite.Add <UserProfile>(userProfile);
            _dbWrite.SaveChanges();
        }