public void CreateUserProfile(string userId)
        {

            UserProfile newUserProfile = new UserProfile();
            newUserProfile.UserId = userId;
            userProfileRepository.Add(newUserProfile);
            SaveUserProfile();
        }
Exemple #2
0
 public void CreateUserProfile(string userId,string userName)
 {
     //userRepository.Add(newUser);
     //SaveUser();
     UserProfile newUserProfile = new UserProfile();
     newUserProfile.UserId = userId;
     newUserProfile.UserName = userName;
     userProfileRepository.Add(newUserProfile);
     SaveUser();
 }
 public UserProfile Register(string email, string firstname, string lastname, string id)
 {
     UserProfile newUser = new UserProfile();
         newUser.UserId = id;
         newUser.Email = email;
         newUser.FirstName = firstname;
         newUser.LastName = lastname;
         userProfileRepository.Add(newUser);
         SaveUserProfile();
         return userProfileRepository.Get(u => u.Email == newUser.Email);
 }
 public void UpdateUserProfile(UserProfile user)
 {
     userProfileRepository.Update(user);
     SaveUserProfile();
 }